From 0e346f5d730a1f1b298ffd05a29098a735df00b8 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Wed, 19 Jan 2022 18:24:37 -0500 Subject: [PATCH] temporarily reduce channel limit to 63 thanks ImGui --- src/engine/engine.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/engine/engine.cpp b/src/engine/engine.cpp index 12548e41..9593121b 100644 --- a/src/engine/engine.cpp +++ b/src/engine/engine.cpp @@ -2580,8 +2580,9 @@ bool DivEngine::addSystem(DivSystem which) { lastError="cannot add more than 32"; return false; } - if (chans+getChannelCount(which)>DIV_MAX_CHANS) { - lastError="max number of total channels is 128"; + // this was DIV_MAX_CHANS but I am setting it to 63 for now due to an ImGui limitation + if (chans+getChannelCount(which)>63) { + lastError="max number of total channels is 63"; return false; } quitDispatch();