diff options
Diffstat (limited to 'lv2/output_lv2.h')
-rw-r--r-- | lv2/output_lv2.h | 13 |
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__*/ |