[Scummvm-cvs-logs] CVS: scummvm/sky/music gmchannel.cpp,1.2,1.3
Torbj?rn Andersson
eriktorbjorn at users.sourceforge.net
Tue Jul 1 23:44:05 CEST 2003
Update of /cvsroot/scummvm/scummvm/sky/music
In directory sc8-pr-cvs1:/tmp/cvs-serv3984
Modified Files:
gmchannel.cpp
Log Message:
Initialize midiChannelNumber to 0. I don't know if this is always the right
thing to do, but leaving it unintialized isn't a good idea either since
that will cause stopMusic() to send bad commands to the MIDI driver in some
cases.
At least in the case of the ALSA driver, this will cause ScummVM to
terminate with an "Unknown Command" error.
Index: gmchannel.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sky/music/gmchannel.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- gmchannel.cpp 17 Jun 2003 12:34:56 -0000 1.2
+++ gmchannel.cpp 2 Jul 2003 06:43:24 -0000 1.3
@@ -53,6 +53,7 @@
{
_musicData = pMusicData;
_midiDrv = pMidiDrv;
+ _channelData.midiChannelNumber = 0;
_channelData.startOfData = startOfData;
_channelData.eventDataPtr = startOfData;
_channelData.channelActive = 1;
More information about the Scummvm-git-logs
mailing list