From 972cbb525e326b7a1e043e099eb3a6809cf2b5b5 Mon Sep 17 00:00:00 2001 From: John Popplewell Date: Tue, 22 Nov 2005 12:42:07 +0000 Subject: [PATCH] Larger audio buffer size on Windows to stop clicks/pops/crackling. --- src/tuxpaint.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index c0b2e22ae..314022e15 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -8281,8 +8281,11 @@ static void setup(int argc, char * argv[]) } #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) +#else + if (use_sound && Mix_OpenAudio(44100, AUDIO_S16SYS, 2, 2048) < 0) +#endif { fprintf(stderr, "\nWarning: I could not set up audio for 44100 Hz "