diff options
author | Andre Heider | 2010-08-17 18:44:16 +0000 |
---|---|---|
committer | Andre Heider | 2010-08-17 18:44:16 +0000 |
commit | b2cbc3a42905b16589e1e5e93a119b84bf0f2f22 (patch) | |
tree | b0c5a6dd86ed1a97f0a61b17c8e63102f84cb878 | |
parent | b37b0d9b0ccb534f619c2090255bd685b6d85699 (diff) | |
download | scummvm-rg350-b2cbc3a42905b16589e1e5e93a119b84bf0f2f22.tar.gz scummvm-rg350-b2cbc3a42905b16589e1e5e93a119b84bf0f2f22.tar.bz2 scummvm-rg350-b2cbc3a42905b16589e1e5e93a119b84bf0f2f22.zip |
WII: Bump the sfx buffer size to fix MT32 emulator hiccups.
svn-id: r52161
-rw-r--r-- | backends/platform/wii/osystem_sfx.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/platform/wii/osystem_sfx.cpp b/backends/platform/wii/osystem_sfx.cpp index 6efb47ff33..33397f0a93 100644 --- a/backends/platform/wii/osystem_sfx.cpp +++ b/backends/platform/wii/osystem_sfx.cpp @@ -25,7 +25,7 @@ #define SFX_THREAD_STACKSIZE (1024 * 128) #define SFX_THREAD_PRIO 80 -#define SFX_THREAD_FRAG_SIZE 2048 +#define SFX_THREAD_FRAG_SIZE (1024 * 8) #define SFX_BUFFERS 3 static lwpq_t sfx_queue; @@ -56,9 +56,9 @@ static void * sfx_thread_func(void *arg) { // the hardware uses two buffers: a front and a back buffer // we use 3 buffers here: two are beeing pushed to the DSP, // and the free one is where our mixer writes to - // thus the latency of our steam is: - // 2048 [frag size] / 48000 / 2 [16bit] / 2 [stereo] * 2 [hw buffers] - // -> 21.3ms + // thus the latency of our stream is: + // 8192 [frag size] / 48000 / 2 [16bit] / 2 [stereo] * 2 [hw buffers] + // -> 85.3ms sb_sw = (sb_hw + 1) % SFX_BUFFERS; mixer->mixCallback(sound_buffer[sb_sw], SFX_THREAD_FRAG_SIZE); DCFlushRange(sound_buffer[sb_sw], SFX_THREAD_FRAG_SIZE); |