This commit is contained in:
tildearrow 2023-08-21 14:17:53 -05:00
parent 6ba8527cb6
commit f5a881917f

View file

@ -1194,9 +1194,9 @@ bool DivEngine::saveAudio(const char* path, int loops, DivAudioExportModes mode,
quitDispatch(); quitDispatch();
initDispatch(true); initDispatch(true);
renderSamplesP(); renderSamplesP();
for (int i=0; i<tchans; i++) { for (int i=0; i<chans; i++) {
if (isMutedBefore[i]) { if (isMutedBefore[i]) {
muteChannels(i,true); muteChannel(i,true);
} }
} }
} }
@ -1228,9 +1228,9 @@ void DivEngine::finishAudioFile() {
quitDispatch(); quitDispatch();
initDispatch(false); initDispatch(false);
renderSamplesP(); renderSamplesP();
for (int i=0; i<tchans; i++) { for (int i=0; i<chans; i++) {
if (isMutedBefore[i]) { if (isMutedBefore[i]) {
muteChannels(i,true); muteChannel(i,true);
} }
} }
} }