Larger audio buffer size on Windows to stop clicks/pops/crackling.
This commit is contained in:
parent
698872d2d2
commit
972cbb525e
1 changed files with 4 additions and 1 deletions
|
|
@ -8281,8 +8281,11 @@ static void setup(int argc, char * argv[])
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef NOSOUND
|
#ifndef NOSOUND
|
||||||
// need Mix_OpenAudio(44100, AUDIO_S16, 2, 2048) for WIN32 ?
|
#ifndef WIN32
|
||||||
if (use_sound && Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 1024) < 0)
|
if (use_sound && Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 1024) < 0)
|
||||||
|
#else
|
||||||
|
if (use_sound && Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 2048) < 0)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
fprintf(stderr,
|
fprintf(stderr,
|
||||||
"\nWarning: I could not set up audio for 44100 Hz "
|
"\nWarning: I could not set up audio for 44100 Hz "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue