diff options
author | Max Horn | 2008-05-27 08:01:06 +0000 |
---|---|---|
committer | Max Horn | 2008-05-27 08:01:06 +0000 |
commit | 77f2e18dcf92daa3ae88e27c5bb62f711b5ef7fc (patch) | |
tree | 7da9adfdfdb5eff38e9d96c6dcb0c4301d61f2d3 /backends/platform | |
parent | afd44c95d98f6fdaf522fe2aa6292894ca8481a4 (diff) | |
download | scummvm-rg350-77f2e18dcf92daa3ae88e27c5bb62f711b5ef7fc.tar.gz scummvm-rg350-77f2e18dcf92daa3ae88e27c5bb62f711b5ef7fc.tar.bz2 scummvm-rg350-77f2e18dcf92daa3ae88e27c5bb62f711b5ef7fc.zip |
Reduce audio buffer size, as indicated on scummvm-devel
svn-id: r32316
Diffstat (limited to 'backends/platform')
-rw-r--r-- | backends/platform/sdl/sdl.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/platform/sdl/sdl.cpp b/backends/platform/sdl/sdl.cpp index 866f5299a0..91adc9b95d 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/10th of a second. Note that it must be a power of two. + // about 1/64th 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 = 0x8000; - while (10 * samples >= _samplesPerSec) { + int samples = 8192; + while (64 * samples >= _samplesPerSec) { samples >>= 1; } |