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; }
/// <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; }
/// <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; }
public EditParameterScope(VstHost host, int index) { _host = host; _index = index; }
/// <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; }