Mercurial > hg > flattendynamics
comparison flattendynamics-ladspa.h @ 0:7632b9bf0cff
Initial stub plugin commit
author | Chris Cannam |
---|---|
date | Thu, 17 Jul 2014 12:16:02 +0100 |
parents | |
children | f21753c504e1 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:7632b9bf0cff |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
2 | |
3 #ifndef FLATTENDYNAMICS_LADSPA_H | |
4 #define FLATTENDYNAMICS_LADSPA_H | |
5 | |
6 #include <ladspa.h> | |
7 | |
8 class FlattenDynamics | |
9 { | |
10 public: | |
11 static const LADSPA_Descriptor *getDescriptor(unsigned long index); | |
12 | |
13 private: | |
14 FlattenDynamics(int sampleRate); | |
15 ~FlattenDynamics(); | |
16 | |
17 enum { | |
18 InputPort = 0, | |
19 OutputPort = 1, | |
20 PortCount = 2, | |
21 }; | |
22 | |
23 static const char *const portNames[PortCount]; | |
24 static const LADSPA_PortDescriptor ports[PortCount]; | |
25 static const LADSPA_PortRangeHint hints[PortCount]; | |
26 static const LADSPA_Properties properties; | |
27 static const LADSPA_Descriptor ladspaDescriptor; | |
28 | |
29 static LADSPA_Handle instantiate(const LADSPA_Descriptor *, unsigned long); | |
30 static void connectPort(LADSPA_Handle, unsigned long, LADSPA_Data *); | |
31 static void activate(LADSPA_Handle); | |
32 static void run(LADSPA_Handle, unsigned long); | |
33 static void deactivate(LADSPA_Handle); | |
34 static void cleanup(LADSPA_Handle); | |
35 | |
36 void reset(); | |
37 void runImpl(unsigned long); | |
38 void updateParameters(); | |
39 | |
40 int m_sampleRate; | |
41 float *m_input; | |
42 float *m_output; | |
43 }; | |
44 | |
45 #endif |