/// <summary>
        /// Called to dispose of this instance.
        /// </summary>
        /// <param name="disposing">When true also dispose of managed resources. Otherwise only dispose of unmanaged resources.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                _deprecatedStub = null;
            }

            base.Dispose(disposing);
        }
Esempio n. 2
0
        /// <summary>
        /// Called by the host when the user has turned on your plugin.
        /// </summary>
        /// <remarks>Your plugin can receive multiple <see cref="Suspend"/>/Resume calls during its lifetime.</remarks>
        public virtual void Resume()
        {
            if (Supports <IVstMidiProcessor>())
            {
                IVstHostCommandsDeprecated20 deprecated = Host.GetInstance <IVstHostCommandsDeprecated20>();

                if (deprecated != null)
                {
                    deprecated.WantMidi();
                }
            }
        }
 /// <summary>
 /// Constructs a new adapter instance on the passed <paramref name="hostCmdStub"/>.
 /// </summary>
 /// <param name="hostCmdStub">An implementation of the <see cref="IVstHostCommandsDeprecated20"/> interface. Must not be null.</param>
 public VstHostCommandDeprecatedAdapter(IVstHostCommandStub hostCmdStub)
     : base(hostCmdStub)
 {
     _deprecatedStub = (IVstHostCommandsDeprecated20)hostCmdStub;
 }
        /// <summary>
        /// Called to dispose of this instance.
        /// </summary>
        /// <param name="disposing">When true also dispose of managed resources. Otherwise only dispose of unmanaged resources.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                _deprecatedStub = null;
            }

            base.Dispose(disposing);
        }
 /// <summary>
 /// Constructs a new adapter instance on the passed <paramref name="hostCmdStub"/>.
 /// </summary>
 /// <param name="hostCmdStub">An implementation of the <see cref="IVstHostCommandsDeprecated20"/> interface. Must not be null.</param>
 public VstHostCommandDeprecatedAdapter(IVstHostCommandStub hostCmdStub)
     : base(hostCmdStub)
 {
     _deprecatedStub = (IVstHostCommandsDeprecated20)hostCmdStub;
 }