Esempio n. 1
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);
        }
Esempio n. 2
0
 /// <summary>
 /// Retrieves an reference of the type <typeparamref name="T"/> or null.
 /// </summary>
 /// <typeparam name="T">Type of an interface or class.</typeparam>
 /// <returns>Returns null of the type <typeparamref name="T"/> is not implemented.</returns>
 public override T GetInstance <T>()
 {
     return(_intfMgr.GetInstance <T>());
 }