From 8cd3f1729a417d933744cf64e2adf78dc07e265c Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Mon, 23 Jan 2012 20:37:57 +0100 Subject: Make plugin store its state. Connect state and GUI (and use GUI) --- lv2/output_lv2.h | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'lv2/output_lv2.h') 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 -#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__*/ -- cgit v1.2.3