示例#1
0
            public FileSelectorScope(VstHost host, VstFileSelect fileSelect)
            {
                _host       = host;
                _fileSelect = fileSelect;

                if (!_host.HostCommandProxy.Commands.OpenFileSelector(_fileSelect))
                {
                    throw new InvalidOperationException(Properties.Resources.FileSelectorScope_OpenNotSupported);
                }
            }
        /// <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, nameof(host));

            _host = host;
        }
示例#3
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, nameof(host));

            _host = host;
        }
示例#4
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)
 {
     _host     = host ?? throw new ArgumentNullException(nameof(host));
     _commands = host.HostCommandProxy.Commands;
 }
示例#5
0
 public EditParameterScope(VstHost host, int index)
 {
     _host  = host;
     _index = index;
 }
示例#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, nameof(host));

            _host = host;
        }