From cbca974623aa903a89c3a6dc8a89ef97c1be4eae Mon Sep 17 00:00:00 2001 From: tildearrow Date: Mon, 1 Jul 2024 03:34:30 -0500 Subject: [PATCH] XM import: hide unused channels --- src/engine/fileOps/xm.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/engine/fileOps/xm.cpp b/src/engine/fileOps/xm.cpp index 1c85c41a9..6d8324462 100644 --- a/src/engine/fileOps/xm.cpp +++ b/src/engine/fileOps/xm.cpp @@ -1039,6 +1039,12 @@ bool DivEngine::loadXM(unsigned char* file, size_t len) { return false; } + // set channel visibility + for (int i=totalChans; i<((totalChans+32)&(~31)); i++) { + ds.subsong[0]->chanShow[i]=false; + ds.subsong[0]->chanShowChanOsc[i]=false; + } + // find subsongs ds.findSubSongs(totalChans);