-
Notifications
You must be signed in to change notification settings - Fork 0
/
Plugin.cs
48 lines (33 loc) · 1.39 KB
/
Plugin.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using Jacobi.Vst.Core;
using Jacobi.Vst.Plugin.Framework;
using Jacobi.Vst.Plugin.Framework.Plugin;
using Microsoft.Extensions.DependencyInjection;
namespace FSPreview
{
public static class PluginFr
{
public static BitwigServer s_bwServer;
static PluginFr() {
s_bwServer = new BitwigServer();
}
public static Plugin Plugin { get; set; }
}
public class Plugin : VstPluginWithServices
{
// 'F' << 24 | 'S' << 16 | 'P' << 8 | 'P'
private const int PluginIdentifier = 0x46535050;
private const string PluginName = "FS-Preview";
private const string ProductName = "Film Scoring Preview";
private const string VendorName = "github.com/tpbeldie";
private const int PluginVersion = 1000;
private const VstPluginCategory PluginCategory = VstPluginCategory.Analysis;
private const VstPluginCapabilities PluginCapabilities = VstPluginCapabilities.None;
private const int InitialDelayInSamples = 0;
public Plugin() : base(PluginName, PluginIdentifier, new VstProductInfo(ProductName, VendorName, PluginVersion), PluginCategory, InitialDelayInSamples, PluginCapabilities) {
PluginFr.Plugin = this;
}
protected override void ConfigureServices(IServiceCollection services) {
services.AddSingletonAll<PluginEditor>();
}
}
}