Restrict SDL audio buffer setting to 128, 256, 512, 1024, 2048. UI improvmeents

This commit is contained in:
Henrik Rydgård committed 2025-04-15 19:26:26 +02:00
1 parent 3d0ef8c6e1
commit 486370852f
54 files changed
+172 -33

No files matched your search

+1 -1
View File
@@ -769,7 +769,7 @@ static const ConfigSetting soundSettings[] = {
ConfigSetting("Enable", &g_Config.bEnableSound, true, CfgFlag::PER_GAME),
ConfigSetting("AudioBackend", &g_Config.iAudioBackend, 0, CfgFlag::PER_GAME),
ConfigSetting("ExtraAudioBuffering", &g_Config.bExtraAudioBuffering, false, CfgFlag::DEFAULT),
ConfigSetting("AudioSamples", &g_Config.iAudioSamples, 256, CfgFlag::DEFAULT),
ConfigSetting("AudioBufferSize", &g_Config.iSDLAudioBufferSize, 256, CfgFlag::DEFAULT),
// Legacy volume settings, these get auto upgraded through default handlers on the new settings. NOTE: Must be before the new ones in the order here.
// The default settings here are still relevant, they will get propagated into the new ones.