Halve SDL audio buffer size to halve audio latency
This commit is contained in:
parent
bc2080e2c6
commit
422871450d
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user