[Scummvm-cvs-logs] SF.net SVN: scummvm:[54485] scummvm/trunk/engines/sci/sound/midiparser_sci. cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Fri Nov 26 01:05:28 CET 2010
Revision: 54485
http://scummvm.svn.sourceforge.net/scummvm/?rev=54485&view=rev
Author: thebluegr
Date: 2010-11-26 00:05:27 +0000 (Fri, 26 Nov 2010)
Log Message:
-----------
SCI: set the reverb setting of the current song when a relevant event is fired from the MIDI stream
Modified Paths:
--------------
scummvm/trunk/engines/sci/sound/midiparser_sci.cpp
Modified: scummvm/trunk/engines/sci/sound/midiparser_sci.cpp
===================================================================
--- scummvm/trunk/engines/sci/sound/midiparser_sci.cpp 2010-11-25 22:23:14 UTC (rev 54484)
+++ scummvm/trunk/engines/sci/sound/midiparser_sci.cpp 2010-11-26 00:05:27 UTC (rev 54485)
@@ -502,9 +502,11 @@
switch (info.basic.param1) {
case kSetReverb:
if (info.basic.param2 == 127) // Set global reverb instead
- ((MidiPlayer *)_driver)->setReverb(_music->getGlobalReverb());
+ _pSnd->reverb = _music->getGlobalReverb();
else
- ((MidiPlayer *)_driver)->setReverb(info.basic.param2);
+ _pSnd->reverb = _music->getGlobalReverb();
+
+ ((MidiPlayer *)_driver)->setReverb(_pSnd->reverb);
break;
case kMidiHold:
// Check if the hold ID marker is the same as the hold ID
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