/// <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>();
     }
 }
Exemple #2
0
 /// <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>();
     }
 }
Exemple #3
0
        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);
        }
Exemple #4
0
 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;
 }
Exemple #6
0
 public void Dispose()
 {
     _hote = null;
 }
Exemple #7
0
 public void Open(IVstHost hote)
 {
     _hote = hote;
 }
Exemple #8
0
 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();
 }
Exemple #10
0
 void IVstPlugin.Open(IVstHost host)
 {
     Host = host;
 }
Exemple #11
0
 /// <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;
 }
Exemple #13
0
        /// <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();
        }
Exemple #14
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;
 }