/// <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; }
/// <summary> /// Called by the client when done with edit. /// </summary> public void Dispose() { if (_host != null) { _host.HostCommandStub.EndEdit(_index); _host = null; } }
/// <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; } }
public FileSelectorScope(VstHost host, VstFileSelect fileSelect) { _host = host; _fileSelect = fileSelect; if (_host.HostCommandStub.OpenFileSelector(_fileSelect) == false) { throw new InvalidOperationException(Properties.Resources.FileSelectorScope_OpenNotSupported); } }
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, "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) { Throw.IfArgumentIsNull(host, "host"); _host = host; }
/// <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; }
/// <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; }