summaryrefslogtreecommitdiff
path: root/lv2/output_lv2.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-01-23 20:37:57 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2012-01-23 20:37:57 +0100
commit8cd3f1729a417d933744cf64e2adf78dc07e265c (patch)
tree8d677dced9b5efcb670dd3b04d7426a56e1ff96d /lv2/output_lv2.h
parent4a4d0a84bb1b80555052f59c1a4addc870ce5fda (diff)
Make plugin store its state. Connect state and GUI (and use GUI)
Diffstat (limited to 'lv2/output_lv2.h')
-rw-r--r--lv2/output_lv2.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/lv2/output_lv2.h b/lv2/output_lv2.h
index 9a313f4..1b4e8c9 100644
--- a/lv2/output_lv2.h
+++ b/lv2/output_lv2.h
@@ -29,7 +29,13 @@
#include <audiooutputengine.h>
-#define NUM_OUTPUTS 16
+#define NUM_OUTPUTS 64
+
+class OutputPort {
+public:
+ size_t size;
+ sample_t *samples;
+};
class OutputLV2 : public AudioOutputEngine {
public:
@@ -47,7 +53,10 @@ public:
void run(int ch, sample_t *samples, size_t nsamples);
void post(size_t nsamples);
- sample_t *outputPort[NUM_OUTPUTS];
+ sample_t *getBuffer(int c);
+
+ // sample_t *outputPort[NUM_OUTPUTS];
+ OutputPort outputPorts[NUM_OUTPUTS];
};
#endif/*__DRUMGIZMO_OUTPUT_LV2_H__*/