aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/he
diff options
context:
space:
mode:
authorTravis Howell2009-11-22 11:58:14 +0000
committerTravis Howell2009-11-22 11:58:14 +0000
commit40504d781032581d0a37d0d996909e5f7084dae9 (patch)
treeacd94cd6a94cb424a07e4de722d7f4ed505987f2 /engines/scumm/he
parentbb0c7657316942859a7a8575236320cf819d07c6 (diff)
downloadscummvm-rg350-40504d781032581d0a37d0d996909e5f7084dae9.tar.gz
scummvm-rg350-40504d781032581d0a37d0d996909e5f7084dae9.tar.bz2
scummvm-rg350-40504d781032581d0a37d0d996909e5f7084dae9.zip
Add patch #2876221 - FBEAR: Fix for MIDI piano notes (DOS version), with minor change.
svn-id: r46081
Diffstat (limited to 'engines/scumm/he')
-rw-r--r--engines/scumm/he/sound_he.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/scumm/he/sound_he.cpp b/engines/scumm/he/sound_he.cpp
index 254fecbe0d..8dd59ca388 100644
--- a/engines/scumm/he/sound_he.cpp
+++ b/engines/scumm/he/sound_he.cpp
@@ -748,9 +748,12 @@ void SoundHE::playHESound(int soundID, int heOffset, int heChannel, int heFlags)
}
else if (READ_BE_UINT32(ptr) == MKID_BE('MIDI')) {
if (_vm->_imuse) {
+ // This is used in the DOS version of Fatty Bear's
+ // Birthday Surprise to change the note on the piano
+ // when not using a digitized instrument.
_vm->_imuse->stopSound(_currentMusic);
_currentMusic = soundID;
- _vm->_imuse->startSound(soundID);
+ _vm->_imuse->startSoundWithNoteOffset(soundID, heOffset);
}
}
}