diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-10-04 17:31:19 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2014-10-04 17:31:19 +0200 |
commit | 5fbec7c02c6677d701675bfcfd529bb646b4bea8 (patch) | |
tree | d871f59aa0ed3999e25cb32e154b2f6a5d98f7bb /lv2/output_lv2.h | |
parent | 6f0edf4dbb11278f5cce9506b3af2b7940b45824 (diff) |
Add samplerate() method to lv2 output engine.
Diffstat (limited to 'lv2/output_lv2.h')
-rw-r--r-- | lv2/output_lv2.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lv2/output_lv2.h b/lv2/output_lv2.h index 1b4e8c9..272a78c 100644 --- a/lv2/output_lv2.h +++ b/lv2/output_lv2.h @@ -39,7 +39,7 @@ public: class OutputLV2 : public AudioOutputEngine { public: - OutputLV2(); + OutputLV2(double sample_rate); ~OutputLV2(); bool init(Channels channels); @@ -54,9 +54,13 @@ public: void post(size_t nsamples); sample_t *getBuffer(int c); + + size_t samplerate(); // sample_t *outputPort[NUM_OUTPUTS]; OutputPort outputPorts[NUM_OUTPUTS]; + + double sample_rate; }; #endif/*__DRUMGIZMO_OUTPUT_LV2_H__*/ |