summaryrefslogtreecommitdiff
path: root/plugin
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 /plugin
parent37c2ec6edd2294a31561b4cd46ded6a2b4f74e22 (diff)
Make max channnel count controllable through the configure script to make it possible to exceed the default 16.
Diffstat (limited to 'plugin')
-rw-r--r--plugin/drumgizmo_plugin.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugin/drumgizmo_plugin.cc b/plugin/drumgizmo_plugin.cc
index 1d03fd2..e7bc29e 100644
--- a/plugin/drumgizmo_plugin.cc
+++ b/plugin/drumgizmo_plugin.cc
@@ -26,6 +26,8 @@
*/
#include "drumgizmo_plugin.h"
+#include <config.h>
+
#include <cstring>
#include <algorithm>
#include <string>
@@ -110,7 +112,7 @@ size_t DrumGizmoPlugin::getNumberOfAudioInputs()
size_t DrumGizmoPlugin::getNumberOfAudioOutputs()
{
- return 16;
+ return NUM_CHANNELS;
}
std::string DrumGizmoPlugin::getId()
@@ -148,7 +150,7 @@ PluginCategory DrumGizmoPlugin::getPluginCategory()
return PluginCategory::Synth;
}
-static float g_samples[16* 4096];
+static float g_samples[NUM_CHANNELS * 4096];
void DrumGizmoPlugin::process(size_t pos,
const std::vector<MidiEvent>& input_events,