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. --- plugin/drumgizmo_plugin.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugin') 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 + #include #include #include @@ -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& input_events, -- cgit v1.2.3