forked from falkTX/dssi-vst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
remotevstclient.h
50 lines (39 loc) · 1.12 KB
/
remotevstclient.h
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
49
50
/* -*- c-basic-offset: 4 -*- */
/*
dssi-vst: a DSSI plugin wrapper for VST effects and instruments
Copyright 2012-2013 Filipe Coelho
Copyright 2010-2011 Kristian Amlie
Copyright 2004-2010 Chris Cannam
*/
#ifndef REMOTE_VST_CLIENT_H
#define REMOTE_VST_CLIENT_H
#include "remotepluginclient.h"
class RemoteVSTClient : public RemotePluginClient
{
public:
// may throw a string exception
RemoteVSTClient(std::string dllName, bool showGUI = false);
virtual ~RemoteVSTClient();
// lightweight bulk query mechanism
struct PluginRecord {
std::string dllName;
std::string pluginName;
std::string vendorName;
bool isSynth;
bool hasGUI;
int inputs;
int outputs;
int parameters;
std::vector<std::string> parameterNames;
std::vector<float> parameterDefaults;
int programs;
std::vector<std::string> programNames;
};
static void queryPlugins(std::vector<PluginRecord> &plugins);
protected:
static bool addFromFd(int fd, PluginRecord &rec);
private:
RemoteVSTClient(const RemoteVSTClient &); // not provided
RemoteVSTClient &operator=(const RemoteVSTClient &); // not provided
};
#endif