/// <summary> /// Constructs a new instance. /// </summary> public Plugin() : base("VST.NET Delay Plugin", new VstProductInfo("VST.NET Code Samples", "Jacobi Software © 2008-2020", 2000), VstPluginCategory.RoomFx, VstPluginCapabilities.None, 0, 0x3A3A3A3A) { ParameterFactory = new PluginParameterFactory(); AudioProcessor audioProcessor = GetInstance <AudioProcessor>(); // add delay parameters to factory ParameterFactory.ParameterInfos.AddRange(audioProcessor.Delay.ParameterInfos); }
/// <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); }
protected override void ConfigureServices(IServiceCollection services) { var audioProcessor = new AudioProcessor(this); services.AddPluginComponent(audioProcessor); var persistence = new PluginPersistence(this); services.AddPluginComponent(persistence); var programs = new PluginPrograms(this); services.AddPluginComponent(programs); }