audio export: fix channel count in per-chan export

This commit is contained in:
tildearrow 2024-05-11 02:32:35 -05:00
parent fc66fe1b15
commit 68383869d3
2 changed files with 25 additions and 17 deletions

View file

@ -45,9 +45,11 @@ void FurnaceGUI::drawExportAudio(bool onWindow) {
if (audioExportOptions.sampleRate>384000) audioExportOptions.sampleRate=384000;
}
if (ImGui::InputInt("Channels in file",&audioExportOptions.chans,1,1)) {
if (audioExportOptions.chans<1) audioExportOptions.chans=1;
if (audioExportOptions.chans>16) audioExportOptions.chans=16;
if (audioExportOptions.mode!=DIV_EXPORT_MODE_MANY_SYS) {
if (ImGui::InputInt("Channels in file",&audioExportOptions.chans,1,1)) {
if (audioExportOptions.chans<1) audioExportOptions.chans=1;
if (audioExportOptions.chans>16) audioExportOptions.chans=16;
}
}
if (ImGui::InputInt("Loops",&audioExportOptions.loops,1,2)) {