Esempio n. 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;
        }
Esempio n. 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;
        }
Esempio n. 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;
 }
Esempio n. 5
0
 public EditParameterScope(VstHost host, int index)
 {
     _host  = host;
     _index = index;
 }
Esempio n. 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;
        }