Set SDL2 audio backend to 48000Hz
This commit is contained in:
parent
b3e40b0475
commit
6ea58290f4
1 changed files with 2 additions and 2 deletions
|
@ -76,10 +76,10 @@ BOOL AudioBackend_Init(void)
|
||||||
puts(SDL_GetAudioDriver(i));
|
puts(SDL_GetAudioDriver(i));
|
||||||
|
|
||||||
SDL_AudioSpec specification;
|
SDL_AudioSpec specification;
|
||||||
specification.freq = 44100;
|
specification.freq = 48000;
|
||||||
specification.format = AUDIO_F32;
|
specification.format = AUDIO_F32;
|
||||||
specification.channels = 2;
|
specification.channels = 2;
|
||||||
specification.samples = 0x400; // Roughly 10 milliseconds for 44100Hz
|
specification.samples = 0x400; // Roughly 10 milliseconds for 48000Hz
|
||||||
specification.callback = Callback;
|
specification.callback = Callback;
|
||||||
specification.userdata = NULL;
|
specification.userdata = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue