diff options
author | Martin Kiewitz | 2010-07-16 13:37:19 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-07-16 13:37:19 +0000 |
commit | 3ceb02f08ac46537ba3bbc092b5b15f2390738c8 (patch) | |
tree | 6c6bec9e3cdbe80e4e37d0b2728d22434e95d45c /engines/sci/sound | |
parent | 379a55f089f70ee961bacf3072eead629cb1d2e3 (diff) | |
download | scummvm-rg350-3ceb02f08ac46537ba3bbc092b5b15f2390738c8.tar.gz scummvm-rg350-3ceb02f08ac46537ba3bbc092b5b15f2390738c8.tar.bz2 scummvm-rg350-3ceb02f08ac46537ba3bbc092b5b15f2390738c8.zip |
SCI: adding signatures for 4-parameter variant of kDoSound(sendMidi), needs to get figured out how this works - fixes signature mismatch in lsl1
svn-id: r50937
Diffstat (limited to 'engines/sci/sound')
-rw-r--r-- | engines/sci/sound/soundcmd.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/sound/soundcmd.cpp b/engines/sci/sound/soundcmd.cpp index 51832af09f..e4c0bd5c8a 100644 --- a/engines/sci/sound/soundcmd.cpp +++ b/engines/sci/sound/soundcmd.cpp @@ -443,6 +443,11 @@ reg_t SoundCommandParser::kDoSoundSendMidi(int argc, reg_t *argv, reg_t acc) { byte channel = argv[1].toUint16() & 0xf; byte midiCmd = argv[2].toUint16() & 0xff; + // TODO: first there is a 4-parameter variant of this call which needs to get reversed + // second the current code isn't 100% accurate, sierra sci does checks on the 4th parameter + if (argc == 4) + return acc; + uint16 controller = argv[3].toUint16(); uint16 param = argv[4].toUint16(); |