mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-26 14:33:46 -04:00
allow SDL2_Mixer to adjust sample size
This commit is contained in:
parent
59d3a6a80e
commit
6be8c38aed
@ -722,7 +722,8 @@ void I_InitSound(void)
|
||||
return;
|
||||
}
|
||||
|
||||
if(Mix_OpenAudioDevice(snd_samplerate, MIX_DEFAULT_FORMAT, 2, audio_buffers, NULL, SDL_AUDIO_ALLOW_FREQUENCY_CHANGE) < 0)
|
||||
if (Mix_OpenAudioDevice(snd_samplerate, AUDIO_S16SYS, 2, audio_buffers, NULL,
|
||||
SDL_AUDIO_ALLOW_FREQUENCY_CHANGE | SDL_AUDIO_ALLOW_SAMPLES_CHANGE) < 0)
|
||||
{
|
||||
printf("Couldn't open audio with desired format.\n");
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user