Set SDL2 audio backend to 48000Hz

This commit is contained in:
Clownacy 2020-04-04 20:57:34 +01:00
parent b3e40b0475
commit 6ea58290f4

View file

@ -76,10 +76,10 @@ BOOL AudioBackend_Init(void)
puts(SDL_GetAudioDriver(i));
SDL_AudioSpec specification;
specification.freq = 44100;
specification.freq = 48000;
specification.format = AUDIO_F32;
specification.channels = 2;
specification.samples = 0x400; // Roughly 10 milliseconds for 44100Hz
specification.samples = 0x400; // Roughly 10 milliseconds for 48000Hz
specification.callback = Callback;
specification.userdata = NULL;