aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Heider2010-08-24 18:44:14 +0000
committerAndre Heider2010-08-24 18:44:14 +0000
commit922510df7e1b80c998532da66ae621ecacaed0f2 (patch)
treef35d3c819aa622b543c76ab6556fa1ef020519eb
parentf2ed796ba3502ec914044eb6ada905329eea3692 (diff)
downloadscummvm-rg350-922510df7e1b80c998532da66ae621ecacaed0f2.tar.gz
scummvm-rg350-922510df7e1b80c998532da66ae621ecacaed0f2.tar.bz2
scummvm-rg350-922510df7e1b80c998532da66ae621ecacaed0f2.zip
SOUND: New global define AUDIO_REVERSE_STEREO.
This reverses the stereo channels for all sfx streams, meant for hardware devices which expect an inverse order. Use it for the Wii and Gamecube port since it's reversed since day one :P svn-id: r52357
-rwxr-xr-xconfigure2
-rw-r--r--sound/mixer.cpp4
2 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index 6239a5b743..453e3a6d30 100755
--- a/configure
+++ b/configure
@@ -1594,6 +1594,7 @@ if test -n "$_host"; then
_mt32emu=no
_port_mk="backends/platform/wii/wii.mk"
add_line_to_config_mk 'GAMECUBE = 1'
+ add_line_to_config_h '#define AUDIO_REVERSE_STEREO'
add_line_to_config_h '#define GAMECUBE'
add_line_to_config_h "/* #define DEBUG_WII_USBGECKO */"
add_line_to_config_h "/* #define DEBUG_WII_MEMSTATS */"
@@ -1793,6 +1794,7 @@ if test -n "$_host"; then
_build_scalers=no
_port_mk="backends/platform/wii/wii.mk"
add_line_to_config_mk 'GAMECUBE = 0'
+ add_line_to_config_h '#define AUDIO_REVERSE_STEREO'
add_line_to_config_h "#define DEBUG_WII_USBGECKO"
add_line_to_config_h "/* #define DEBUG_WII_MEMSTATS */"
add_line_to_config_h "/* #define DEBUG_WII_GDB */"
diff --git a/sound/mixer.cpp b/sound/mixer.cpp
index 08a4ad921d..c40aa95d73 100644
--- a/sound/mixer.cpp
+++ b/sound/mixer.cpp
@@ -246,6 +246,10 @@ void MixerImpl::playStream(
}
}
+#ifdef AUDIO_REVERSE_STEREO
+ reverseStereo = !reverseStereo;
+#endif
+
// Create the channel
Channel *chan = new Channel(this, type, stream, autofreeStream, reverseStereo, id, permanent);
chan->setVolume(volume);