Halve SDL audio buffer size to halve audio latency

This commit is contained in:
Kae 2023-06-29 01:29:29 +10:00
parent bc2080e2c6
commit 422871450d

View File

@ -284,7 +284,7 @@ public:
SDL_AudioSpec desired = {}; SDL_AudioSpec desired = {};
desired.freq = 44100; desired.freq = 44100;
desired.format = AUDIO_S16SYS; desired.format = AUDIO_S16SYS;
desired.samples = 2048; desired.samples = 1024;
desired.channels = 2; desired.channels = 2;
desired.userdata = this; desired.userdata = this;
desired.callback = [](void* userdata, Uint8* stream, int len) { desired.callback = [](void* userdata, Uint8* stream, int len) {