[Scummvm-cvs-logs] SF.net SVN: scummvm:[47315] scummvm/trunk/engines/sci/sound
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Fri Jan 15 23:15:59 CET 2010
Revision: 47315
http://scummvm.svn.sourceforge.net/scummvm/?rev=47315&view=rev
Author: thebluegr
Date: 2010-01-15 22:15:58 +0000 (Fri, 15 Jan 2010)
Log Message:
-----------
Send a velocity off signal to all channels when a song is loaded
Modified Paths:
--------------
scummvm/trunk/engines/sci/sound/midiparser_sci.cpp
scummvm/trunk/engines/sci/sound/softseq/adlib.cpp
Modified: scummvm/trunk/engines/sci/sound/midiparser_sci.cpp
===================================================================
--- scummvm/trunk/engines/sci/sound/midiparser_sci.cpp 2010-01-15 21:40:58 UTC (rev 47314)
+++ scummvm/trunk/engines/sci/sound/midiparser_sci.cpp 2010-01-15 22:15:58 UTC (rev 47315)
@@ -82,6 +82,11 @@
_loopTick = 0;
_channelsUsed = 0;
+ // Send a velocity off signal to all channels
+ for (int i = 0; i < 16; ++i) {
+ _driver->send(0xB0 | i, 0x4E, 0); // Reset velocity
+ }
+
return true;
}
Modified: scummvm/trunk/engines/sci/sound/softseq/adlib.cpp
===================================================================
--- scummvm/trunk/engines/sci/sound/softseq/adlib.cpp 2010-01-15 21:40:58 UTC (rev 47314)
+++ scummvm/trunk/engines/sci/sound/softseq/adlib.cpp 2010-01-15 22:15:58 UTC (rev 47315)
@@ -293,8 +293,6 @@
#endif
break;
case 0x4e:
- // FIXME: this flag should be set to 0 when a new song is started
- debug(3, "ADLIB: Setting velocity control flag for channel %i to %i", channel, op2);
_channels[channel].enableVelocity = op2;
break;
case SCI_MIDI_CHANNEL_NOTES_OFF:
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