Qt: Cap audio buffer size to 8192

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

View File

@ -6,6 +6,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:
- Qt: Make mute menu option also toggle fast-forward mute (fixes mgba.io/i/1424)

View File

@ -350,7 +350,6 @@ void SettingsView::updateConfig() {
saveSetting("sgb.borders", m_ui.sgbBorders);
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);
@ -382,6 +381,11 @@ void SettingsView::updateConfig() {
saveSetting("autoload", m_ui.autoload);
saveSetting("autosave", m_ui.autosave);
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 {