/// <summary> /// Enables the ability to change parameters in this plugin from the host. /// <remarks>This cannot be done during Init() because the IVstHost is still null</remarks> public void InitHostAutomation(IVstHost vstHost) { foreach (VstParameterManager paramMgr in VstParameterManagerDict.RightKeys) { paramMgr.HostAutomation = vstHost.GetInstance<IVstHostAutomation>(); } }
/// <summary> /// Enables the ability to change parameters in this plugin from the host. /// <remarks>This cannot be done during Init() because the IVstHost is still null</remarks> public void InitHostAutomation(IVstHost vstHost) { foreach (VstParameterManager paramMgr in VstParameterManagerDict.RightKeys) { paramMgr.HostAutomation = vstHost.GetInstance <IVstHostAutomation>(); } }
public override void Open(IVstHost host) { base.Open(host); ParametersManager.SetHost(host.GetInstance <IVstHostCommands20>()); OnOpen?.Invoke(); Log.Print("Open in host : " + host.ProductInfo.Product + " " + DateTime.Now.Second); }
private void Dispose(bool disposeAll) { if (disposeAll) { Host = null; foreach (object _obj in vstInstancesByInterface.Values) { var obj = _obj as IDisposable; if (obj != null && obj != this) { obj.Dispose(); } } vstInstancesByInterface.Clear(); onDispose?.Invoke(); onDispose = null; } }
//This cannot be done during Init() because the IVstHost is still null public void InitVstHost(IVstHost vstHost) { this.vstHost = vstHost; }
public void Dispose() { _hote = null; }
public void Open(IVstHost hote) { _hote = hote; }
public override void Open(IVstHost host) { Asdf = 0; _hostStub = host.GetType().GetProperty("HostCommandStub").GetValue(host, null) as IVstHostCommandStub; base.Open(host); }
/// <summary> /// The host will call this method when the plugin is loaded and should open its resources. /// </summary> /// <param name="host">A reference to the Host root interface. This reference can be used to /// query for other host interfaces.Must not be null.</param> /// <remarks>Open is a good time to allocate large memory blocks when you use a pre-allocated /// memory schema in your plugin.</remarks> public virtual void Open(IVstHost host) { Host = host; OnOpened(); }
void IVstPlugin.Open(IVstHost host) { Host = host; }
/// <summary> /// The host will call this method when the plugin is loaded and should open its resources. /// </summary> /// <param name="host">A reference to the Host root interface. This reference can be used to /// query for other host interfaces.Must not be null.</param> /// <remarks>Open is a good time to allocate large memory blocks when you use a pre-allocated /// memory schema in your plugin.</remarks> public virtual void Open(IVstHost host) { Host = host; Opened?.Invoke(this, EventArgs.Empty); }
public void InitVstHost(IVstHost vstHost) { this.vstHost = vstHost; }
/// <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; }