mirror of
https://github.com/libretro/scummvm.git
synced 2025-04-02 14:51:40 +00:00
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
This commit is contained in:
parent
f2ed796ba3
commit
922510df7e
2
configure
vendored
2
configure
vendored
@ -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 */"
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user