/// <summary>
        /// Constructs an instance based on the host proxy.
        /// </summary>
        /// <param name="host">Must not be null.</param>
        /// <exception cref="ArgumentNullException">Thrown when <paramref name="host"/> is not set to an instance of an object.</exception>
        public VstHostInterfaceManager(VstHost host)
            : this()
        {
            Throw.IfArgumentIsNull(host, "host");

            _host = host;
        }
Example #2
0
 /// <summary>
 /// Called by the client when done with edit.
 /// </summary>
 public void Dispose()
 {
     if (_host != null)
     {
         _host.HostCommandStub.EndEdit(_index);
         _host = null;
     }
 }
Example #3
0
 /// <summary>
 /// Call by the client when it is done with the file selector.
 /// </summary>
 /// <remarks>We do not check wheter or not the host supports closing the file selector...</remarks>
 public void Dispose()
 {
     if (_host != null)
     {
         _host.HostCommandStub.CloseFileSelector(_fileSelect);
         _host = null;
     }
 }
Example #4
0
            public FileSelectorScope(VstHost host, VstFileSelect fileSelect)
            {
                _host       = host;
                _fileSelect = fileSelect;

                if (_host.HostCommandStub.OpenFileSelector(_fileSelect) == false)
                {
                    throw new InvalidOperationException(Properties.Resources.FileSelectorScope_OpenNotSupported);
                }
            }
Example #5
0
 public EditParameterScope(VstHost host, int index)
 {
     _host  = host;
     _index = index;
 }
Example #6
0
        /// <summary>
        /// Constructs an instance on the host proxy.
        /// </summary>
        /// <param name="host">Must not be null.</param>
        /// <exception cref="ArgumentNullException">Thrown when <paramref name="host"/> is not set to an instance of an object.</exception>
        public VstHostAutomation(VstHost host)
        {
            Throw.IfArgumentIsNull(host, "host");

            _host = host;
        }
Example #7
0
        /// <summary>
        /// Constructs an instance on the host proxy.
        /// </summary>
        /// <param name="host">Must not be null.</param>
        /// <exception cref="ArgumentNullException">Thrown when <paramref name="host"/> is not set to an instance of an object.</exception>
        public VstHostShell(VstHost host)
        {
            Throw.IfArgumentIsNull(host, "host");

            _host = host;
        }
Example #8
0
        /// <summary>
        /// Constructs an instance on the host proxy.
        /// </summary>
        /// <param name="host">Must not be null.</param>
        /// <exception cref="System.ArgumentNullException">Thrown when <paramref name="host"/> is not set to an instance of an object.</exception>
        public VstHostMidiProcessor(VstHost host)
        {
            Throw.IfArgumentIsNull(host, "host");

            _host = host;
        }
Example #9
0
        /// <summary>
        /// Constructs a new instance based on a root <paramref name="host"/> object.
        /// </summary>
        /// <param name="host">Must not be null.</param>
        /// <exception cref="System.ArgumentNullException">Thrown when <paramref name="host"/> is not set to an instance of an object.</exception>
        public VstHostSequencer(VstHost host)
        {
            Throw.IfArgumentIsNull(host, "host");

            _host = host;
        }