diff options
author | Torbjörn Andersson | 2003-07-02 06:43:24 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2003-07-02 06:43:24 +0000 |
commit | cd269445f53547ace60de132a9942ea485a86eec (patch) | |
tree | 750f2a1bbf24f004796c674353e1c8f5adc755e8 | |
parent | 8715968b2c90499ef0a2a756abcc472ba496ea76 (diff) | |
download | scummvm-rg350-cd269445f53547ace60de132a9942ea485a86eec.tar.gz scummvm-rg350-cd269445f53547ace60de132a9942ea485a86eec.tar.bz2 scummvm-rg350-cd269445f53547ace60de132a9942ea485a86eec.zip |
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.
svn-id: r8705
-rw-r--r-- | sky/music/gmchannel.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sky/music/gmchannel.cpp b/sky/music/gmchannel.cpp index c321a00163..5d09a75ecf 100644 --- a/sky/music/gmchannel.cpp +++ b/sky/music/gmchannel.cpp @@ -53,6 +53,7 @@ SkyGmChannel::SkyGmChannel(uint8 *pMusicData, uint16 startOfData, MidiDriver *pM { _musicData = pMusicData; _midiDrv = pMidiDrv; + _channelData.midiChannelNumber = 0; _channelData.startOfData = startOfData; _channelData.eventDataPtr = startOfData; _channelData.channelActive = 1; |