Qt: Cap audio buffer size to 8192

This commit is contained in:
Vicki Pfau 2019-06-04 14:20:10 -07:00
parent f2134e6b62
commit d048917b72
2 changed files with 6 additions and 1 deletions

View File

@ -27,6 +27,7 @@ Other fixes:
- Switch: Fix threading-related crash on second launch
- Qt: Fix FPS target maxing out at 59.727 (fixes mgba.io/i/1421)
- Core: Fix crashes if core directories aren't set
- Qt: Cap audio buffer size to 8192 (fixes mgba.io/i/1433)
Misc:
- GBA Savedata: EEPROM performance fixes
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash

View File

@ -369,7 +369,6 @@ void SettingsView::updateConfig() {
saveSetting("useCgbColors", m_ui.useCgbColors);
saveSetting("useBios", m_ui.useBios);
saveSetting("skipBios", m_ui.skipBios);
saveSetting("audioBuffers", m_ui.audioBufferSize);
saveSetting("sampleRate", m_ui.sampleRate);
saveSetting("videoSync", m_ui.videoSync);
saveSetting("audioSync", m_ui.audioSync);
@ -407,6 +406,11 @@ void SettingsView::updateConfig() {
saveSetting("useDiscordPresence", m_ui.useDiscordPresence);
saveSetting("gba.audioHle", m_ui.audioHle);
if (m_ui.audioBufferSize->currentText().toInt() > 8192) {
m_ui.audioBufferSize->setCurrentText("8192");
}
saveSetting("audioBuffers", m_ui.audioBufferSize);
if (m_ui.fastForwardUnbounded->isChecked()) {
saveSetting("fastForwardRatio", "-1");
} else {