From 25b398ea000b5529084d985bd14ed066a81578d3 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 16 Jun 2019 10:47:33 +0200 Subject: Make max channnel count controllable through the configure script to make it possible to exceed the default 16. --- test/lv2.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'test') 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 + #include #include #include @@ -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) { -- cgit v1.2.3