sdl3/audio: Don't double the buffer size requested.

This commit is contained in:
BearOso 2024-12-13 20:06:07 -06:00
parent 1dbfd2e141
commit b83f789343
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ bool S9xSDL3SoundDriver::open_device(int playback_rate, int buffer_size)
if (buffer_size < 32) if (buffer_size < 32)
buffer_size = 32; buffer_size = 32;
buffer.resize(buffer_size * 4 * audiospec.freq / 1000); buffer.resize(buffer_size * 2 * audiospec.freq / 1000);
return true; return true;
} }