1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* * |
* * |
3 |
* Copyright (C) 2008 Andreas Persson * |
* Copyright (C) 2008 - 2009 Andreas Persson * |
4 |
* * |
* * |
5 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
6 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
31 |
class PluginDssi : public LinuxSampler::Plugin { |
class PluginDssi : public LinuxSampler::Plugin { |
32 |
public: |
public: |
33 |
PluginDssi(unsigned long SampleRate); |
PluginDssi(unsigned long SampleRate); |
34 |
~PluginDssi(); |
private: |
35 |
|
int RefCount; |
36 |
|
friend class PluginInstance; |
37 |
|
}; |
38 |
|
|
39 |
|
class PluginInstance { |
40 |
|
public: |
41 |
|
PluginInstance(unsigned long SampleRate); |
42 |
|
~PluginInstance(); |
43 |
void ConnectPort(unsigned long Port, LADSPA_Data* DataLocation); |
void ConnectPort(unsigned long Port, LADSPA_Data* DataLocation); |
44 |
char* Configure(const char* Key, const char* Value); |
char* Configure(const char* Key, const char* Value); |
45 |
void Activate(); |
void Activate(); |
46 |
void RunSynth(unsigned long SampleCount, snd_seq_event_t* Events, |
static void RunMultipleSynths(unsigned long InstanceCount, |
47 |
unsigned long EventCount); |
LADSPA_Handle* Instances, |
48 |
|
unsigned long SampleCount, |
49 |
|
snd_seq_event_t** Events, |
50 |
|
unsigned long* EventCounts); |
51 |
private: |
private: |
52 |
|
static PluginDssi* plugin; |
53 |
LinuxSampler::SamplerChannel* pChannel; |
LinuxSampler::SamplerChannel* pChannel; |
54 |
LADSPA_Data* Out[2]; |
LADSPA_Data* Out[2]; |
55 |
}; |
}; |
87 |
static char* configure(LADSPA_Handle Instance, |
static char* configure(LADSPA_Handle Instance, |
88 |
const char* Key, |
const char* Key, |
89 |
const char* Value); |
const char* Value); |
|
static void run_synth(LADSPA_Handle Instance, |
|
|
unsigned long SampleCount, |
|
|
snd_seq_event_t* Events, |
|
|
unsigned long EventCount); |
|
90 |
static void run_multiple_synths(unsigned long InstanceCount, |
static void run_multiple_synths(unsigned long InstanceCount, |
91 |
LADSPA_Handle* Instances, |
LADSPA_Handle* Instances, |
92 |
unsigned long SampleCount, |
unsigned long SampleCount, |