-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPluginCommandStub.cs
27 lines (26 loc) · 968 Bytes
/
PluginCommandStub.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using Jacobi.Vst.Plugin.Framework;
using Jacobi.Vst.Plugin.Framework.Plugin;
namespace VstNetAudioPlugin
{
/// <summary>
/// This object receives all calls from the (unmanaged) host.
/// </summary>
/// <remarks>
/// An instance of this object is created automatically by the Jacobi.Vst.Plugin.Interop assembly
/// when the plugin is loaded into the host. Interop marshals all calls from unmanaged C++
/// to this object.
/// </remarks>
public class PluginCommandStub : StdPluginCommandStub
{
/// <summary>
/// Returns an instance of the VST.NET Plugin root object.
/// </summary>
/// <returns>Must never return null.</returns>
protected override IVstPlugin CreatePluginInstance()
{
// StdPluginCommandStub implements all the VST2 methods,
// all you have to do is give the Framework your plugin root.
return new Plugin();
}
}
}