[Scummvm-cvs-logs] SF.net SVN: scummvm:[52357] scummvm/trunk

dhewg at users.sourceforge.net dhewg at users.sourceforge.net
Tue Aug 24 20:44:14 CEST 2010


Revision: 52357
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52357&view=rev
Author:   dhewg
Date:     2010-08-24 18:44:14 +0000 (Tue, 24 Aug 2010)

Log Message:
-----------
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

Modified Paths:
--------------
    scummvm/trunk/configure
    scummvm/trunk/sound/mixer.cpp

Modified: scummvm/trunk/configure
===================================================================
--- scummvm/trunk/configure	2010-08-24 17:57:35 UTC (rev 52356)
+++ scummvm/trunk/configure	2010-08-24 18:44:14 UTC (rev 52357)
@@ -1594,6 +1594,7 @@
 			_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 @@
 			_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 */"

Modified: scummvm/trunk/sound/mixer.cpp
===================================================================
--- scummvm/trunk/sound/mixer.cpp	2010-08-24 17:57:35 UTC (rev 52356)
+++ scummvm/trunk/sound/mixer.cpp	2010-08-24 18:44:14 UTC (rev 52357)
@@ -246,6 +246,10 @@
 			}
 	}
 
+#ifdef AUDIO_REVERSE_STEREO
+	reverseStereo = !reverseStereo;
+#endif
+
 	// Create the channel
 	Channel *chan = new Channel(this, type, stream, autofreeStream, reverseStereo, id, permanent);
 	chan->setVolume(volume);


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