From 5e7c3ce5cdb52d64190e3aa69e1d5ecf4b4ce5d5 Mon Sep 17 00:00:00 2001 From: bgk Date: Mon, 12 Jan 2009 21:12:46 +0000 Subject: [PATCH] The number of samples in the system sound driver buffer has to be a power of 2 on some machines. --- src/common/SoundSDL.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/SoundSDL.cpp b/src/common/SoundSDL.cpp index 6417f397..c1785b8c 100644 --- a/src/common/SoundSDL.cpp +++ b/src/common/SoundSDL.cpp @@ -87,7 +87,7 @@ bool SoundSDL::init(long sampleRate) audio.freq = sampleRate; audio.format = AUDIO_S16SYS; audio.channels = 2; - audio.samples = sampleRate / 60; + audio.samples = 1024; audio.callback = soundCallback; audio.userdata = this;