[Scummvm-cvs-logs] SF.net SVN: scummvm:[52161] scummvm/trunk/backends/platform/wii/osystem_sfx .cpp
dhewg at users.sourceforge.net
dhewg at users.sourceforge.net
Tue Aug 17 20:44:17 CEST 2010
Revision: 52161
http://scummvm.svn.sourceforge.net/scummvm/?rev=52161&view=rev
Author: dhewg
Date: 2010-08-17 18:44:16 +0000 (Tue, 17 Aug 2010)
Log Message:
-----------
WII: Bump the sfx buffer size to fix MT32 emulator hiccups.
Modified Paths:
--------------
scummvm/trunk/backends/platform/wii/osystem_sfx.cpp
Modified: scummvm/trunk/backends/platform/wii/osystem_sfx.cpp
===================================================================
--- scummvm/trunk/backends/platform/wii/osystem_sfx.cpp 2010-08-17 16:27:56 UTC (rev 52160)
+++ scummvm/trunk/backends/platform/wii/osystem_sfx.cpp 2010-08-17 18:44:16 UTC (rev 52161)
@@ -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 @@
// 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);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list