summaryrefslogtreecommitdiff
path: root/lv2/output_lv2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'lv2/output_lv2.cc')
-rw-r--r--lv2/output_lv2.cc22
1 files changed, 6 insertions, 16 deletions
diff --git a/lv2/output_lv2.cc b/lv2/output_lv2.cc
index 8187a5a..b4a6877 100644
--- a/lv2/output_lv2.cc
+++ b/lv2/output_lv2.cc
@@ -28,8 +28,9 @@
#include <string.h>
-OutputLV2::OutputLV2()
+OutputLV2::OutputLV2(double sample_rate)
{
+ this->sample_rate = sample_rate;
for(size_t i = 0; i < NUM_OUTPUTS; i++) {
outputPorts[i].size = 0;
outputPorts[i].samples = NULL;
@@ -83,19 +84,8 @@ sample_t *OutputLV2::getBuffer(int ch)
return NULL;
}
-#ifdef TEST_OUTPUT_LV2
-//Additional dependency files
-//deps:
-//Required cflags (autoconf vars may be used)
-//cflags:
-//Required link options (autoconf vars may be used)
-//libs:
-#include "test.h"
-
-TEST_BEGIN;
-
-// TODO: Put some testcode here (see test.h for usable macros).
-
-TEST_END;
+size_t OutputLV2::samplerate()
+{
+ return sample_rate;
+}
-#endif/*TEST_OUTPUT_LV2*/