GUI: improve chan export chan count estimation

issue #2431
This commit is contained in:
tildearrow 2025-03-23 03:57:39 -05:00
parent 0d1a482cbd
commit fadf516d0b

View file

@ -64,8 +64,18 @@ void DivEngine::getTotalAudioFiles(int &files) {
} }
case DIV_EXPORT_MODE_MANY_CHAN: { case DIV_EXPORT_MODE_MANY_CHAN: {
for (int i=0; i<chans; i++) { for (int i=0; i<chans; i++) {
if (exportChannelMask[i]) { if (!exportChannelMask[i]) continue;
files++; files++;
if (getChannelType(i)==5) {
i++;
while (true) {
if (i>=chans) break;
if (getChannelType(i)!=5) break;
i++;
}
i--;
} }
} }
break; break;