aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schickel2008-05-27 21:18:21 +0000
committerJohannes Schickel2008-05-27 21:18:21 +0000
commit6358878a435a929adc5c0ca503b3eda7fe3acdd6 (patch)
tree6f9bddd94f2b4e1df047c87cc2349edcde07b034
parent691306f0b7e86e845fe3049316a657dd83a21865 (diff)
downloadscummvm-rg350-6358878a435a929adc5c0ca503b3eda7fe3acdd6.tar.gz
scummvm-rg350-6358878a435a929adc5c0ca503b3eda7fe3acdd6.tar.bz2
scummvm-rg350-6358878a435a929adc5c0ca503b3eda7fe3acdd6.zip
Fixed choppy sound on my Vista box. (after talking with Fingolfin about it)
svn-id: r32331
-rw-r--r--backends/platform/sdl/sdl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp
index 91adc9b95d..b750864ad8 100644
--- a/backends/platform/sdl/sdl.cpp
+++ b/backends/platform/sdl/sdl.cpp
@@ -403,10 +403,10 @@ bool OSystem_SDL::setSoundCallback(SoundProc proc, void *param) {
_samplesPerSec = SAMPLES_PER_SEC;
// Determine the sample buffer size. We want it to store enough data for
- // about 1/64th of a second. Note that it must be a power of two.
+ // about 1/32th of a second. Note that it must be a power of two.
// So e.g. at 22050 Hz, we request a sample buffer size of 2048.
int samples = 8192;
- while (64 * samples >= _samplesPerSec) {
+ while (32 * samples >= _samplesPerSec) {
samples >>= 1;
}