summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-06-16 10:47:33 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2019-06-16 10:47:33 +0200
commit25b398ea000b5529084d985bd14ed066a81578d3 (patch)
tree301d8eef0b212d60f5f5939d088f2492b5c1b3f0 /test
parent37c2ec6edd2294a31561b4cd46ded6a2b4f74e22 (diff)
Make max channnel count controllable through the configure script to make it possible to exceed the default 16.
Diffstat (limited to 'test')
-rw-r--r--test/lv2.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/lv2.cc b/test/lv2.cc
index 0f80dea..0c86ad2 100644
--- a/test/lv2.cc
+++ b/test/lv2.cc
@@ -26,6 +26,8 @@
*/
#include "dgunit.h"
+#include <config.h>
+
#include <thread>
#include <chrono>
#include <memory.h>
@@ -379,7 +381,7 @@ public:
// Port buffers:
char sequence_buffer[4096];
- float pcm_buffer[16][10];
+ float pcm_buffer[NUM_CHANNELS][10];
bool freeWheel = true;
// Free wheel port
@@ -389,7 +391,7 @@ public:
res = h.connectPort((int)Ports::MidiPort, seq.data());
DGUNIT_ASSERT_EQUAL(0, res);
- for(int i = 0; i < 16; ++i)
+ for(int i = 0; i < NUM_CHANNELS; ++i)
{
for(int j = 0; j < 10; ++j)
{