rely on song.systemChans

This commit is contained in:
tildearrow 2025-11-11 05:31:06 -05:00
parent 19140fb367
commit 2ff3def8f8
2 changed files with 2 additions and 1 deletions

View file

@ -2175,7 +2175,7 @@ void DivEngine::recalcChans() {
int chanIndex=0;
memset(isInsTypePossible,0,DIV_INS_MAX*sizeof(bool));
for (int i=0; i<song.systemLen; i++) {
int chanCount=getChannelCount(song.system[i]);
int chanCount=song.systemChans[i];
int firstChan=chans;
chans+=chanCount;
for (int j=0; j<chanCount; j++) {

View file

@ -400,6 +400,7 @@ struct DivSong {
std::vector<DivEffectStorage> effects;
// INTERNAL STATE - do not modify.
DivInstrument nullIns, nullInsOPLL, nullInsOPL, nullInsOPLDrums, nullInsQSound, nullInsESFM;
DivWavetable nullWave;
DivSample nullSample;