Exemple #1
0
        /// <summary>
        /// Dispose the plugin.
        /// </summary>
        public override void Dispose()
        {
            _intfMgr.Dispose();
            _intfMgr = null;

            base.Dispose();
        }
Exemple #2
0
        /// <summary>
        /// Constructs a new instance.
        /// </summary>
        public FxTestPlugin()
            : base("VST.NET Delay Plugin",
                   new VstProductInfo("VST.NET Code Samples", "Jacobi Software (c) 2011", 1000),
                   VstPluginCategory.RoomFx, VstPluginCapabilities.None, 0, 0x3A3A3A3A)
        {
            _intfMgr         = new FxPluginInterfaceManager(this);
            ParameterFactory = new PluginParameterFactory();

            AudioProcessor audioProcessor = _intfMgr.GetInstance <AudioProcessor>();

            // add delay parameters to factory
            ParameterFactory.ParameterInfos.AddRange(audioProcessor.Delay.ParameterInfos);
        }