diff options
author | Paweł Kołodziejski | 2004-03-27 20:26:25 +0000 |
---|---|---|
committer | Paweł Kołodziejski | 2004-03-27 20:26:25 +0000 |
commit | 7041ba35686ccc9c5db01c5243a847dffb7e52fa (patch) | |
tree | ce84b76631348e1749b0c946f089165422ed909f /scumm/insane | |
parent | ab64ef93ec638cd094ac8f8811ec54dd16ad2346 (diff) | |
download | scummvm-rg350-7041ba35686ccc9c5db01c5243a847dffb7e52fa.tar.gz scummvm-rg350-7041ba35686ccc9c5db01c5243a847dffb7e52fa.tar.bz2 scummvm-rg350-7041ba35686ccc9c5db01c5243a847dffb7e52fa.zip |
implemented priorites for imuse sounds
svn-id: r13392
Diffstat (limited to 'scumm/insane')
-rw-r--r-- | scumm/insane/insane.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/scumm/insane/insane.cpp b/scumm/insane/insane.cpp index c7f1c18aa6..34f05f6131 100644 --- a/scumm/insane/insane.cpp +++ b/scumm/insane/insane.cpp @@ -1194,7 +1194,7 @@ bool Insane::smlayer_isSoundRunning(int32 sound) { bool Insane::smlayer_startSfx(int32 sound) { if (smlayer_loadSound(sound, 0, 2)) { - _vm->_imuseDigital->startSfx(readArray(sound)); + _vm->_imuseDigital->startSfx(readArray(sound), 40); return true; } else return false; @@ -1202,7 +1202,7 @@ bool Insane::smlayer_startSfx(int32 sound) { bool Insane::smlayer_startVoice(int32 sound) { if (smlayer_loadSound(sound, 0, 2)) { - _vm->_imuseDigital->startSfx(readArray(sound)); + _vm->_imuseDigital->startSfx(readArray(sound), 126); return true; } else return false; @@ -1212,7 +1212,8 @@ void Insane::smlayer_soundSetPan(int32 soundId, int32 pan) { _vm->_imuseDigital->setPan(soundId, pan); } -void Insane::smlayer_soundSetPriority(int32 sound, int32 priority) { +void Insane::smlayer_soundSetPriority(int32 soundId, int32 priority) { + _vm->_imuseDigital->setPriority(soundId, priority); } void Insane::smlayer_drawSomething(byte *renderBitmap, int32 codecparam, |