diff options
author | Torbjörn Andersson | 2004-08-26 13:51:06 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2004-08-26 13:51:06 +0000 |
commit | 13b59c1b42f545a6bf68299c07b2cfea247502ab (patch) | |
tree | 4c45376ba38d112bc67018d653439bfdda2fa6f6 /sky | |
parent | a6da84d0c6bc310777c28255a07e5416424e363f (diff) | |
download | scummvm-rg350-13b59c1b42f545a6bf68299c07b2cfea247502ab.tar.gz scummvm-rg350-13b59c1b42f545a6bf68299c07b2cfea247502ab.tar.bz2 scummvm-rg350-13b59c1b42f545a6bf68299c07b2cfea247502ab.zip |
Reset the "pitch wheel" when turning off a note. This should fix bug
#1016556, hopefully without causing regressions.
svn-id: r14775
Diffstat (limited to 'sky')
-rw-r--r-- | sky/music/gmchannel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sky/music/gmchannel.cpp b/sky/music/gmchannel.cpp index 4737cedf34..7aea34e572 100644 --- a/sky/music/gmchannel.cpp +++ b/sky/music/gmchannel.cpp @@ -59,7 +59,10 @@ void GmChannel::updateVolume(uint16 pVolume) { void GmChannel::stopNote(void) { + // All Notes Off _midiDrv->send((0xB0 | _channelData.midiChannelNumber) | 0x7B00 | 0 | 0x79000000); + // Pitch Wheel + _midiDrv->send((0xE0 | _channelData.midiChannelNumber) | 0x400000); } int32 GmChannel::getNextEventTime(void) { |