aboutsummaryrefslogtreecommitdiff
path: root/engines/illusions/scriptopcodes_duckman.cpp
diff options
context:
space:
mode:
authorjohndoe1232014-08-01 22:53:07 +0200
committerEugene Sandulenko2018-07-20 06:43:33 +0000
commit297996a0900acca177ecfd3ffa51907ad8d284fa (patch)
tree0f91f6c87cac520b5d7e334fd11e8e88a564e89e /engines/illusions/scriptopcodes_duckman.cpp
parentad2c0aaf3d81688f9c575eef64b571cb73249997 (diff)
downloadscummvm-rg350-297996a0900acca177ecfd3ffa51907ad8d284fa.tar.gz
scummvm-rg350-297996a0900acca177ecfd3ffa51907ad8d284fa.tar.bz2
scummvm-rg350-297996a0900acca177ecfd3ffa51907ad8d284fa.zip
ILLUSIONS: Add sound effects (still buggy)
Diffstat (limited to 'engines/illusions/scriptopcodes_duckman.cpp')
-rw-r--r--engines/illusions/scriptopcodes_duckman.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/engines/illusions/scriptopcodes_duckman.cpp b/engines/illusions/scriptopcodes_duckman.cpp
index e8daf6a999..541ad18e11 100644
--- a/engines/illusions/scriptopcodes_duckman.cpp
+++ b/engines/illusions/scriptopcodes_duckman.cpp
@@ -30,6 +30,7 @@
#include "illusions/scriptman.h"
#include "illusions/scriptresource.h"
#include "illusions/scriptthread.h"
+#include "illusions/sound.h"
#include "illusions/specialcode.h"
#include "illusions/talkresource.h"
@@ -369,8 +370,6 @@ void ScriptOpcodes_Duckman::opStartFade(ScriptThread *scriptThread, OpCall &opCa
ARG_INT16(firstIndex);
ARG_INT16(lastIndex);
_vm->startFader(duration, minValue, maxValue, firstIndex, lastIndex, opCall._threadId);
- //DEBUG Resume calling thread, later done when the fading is finished
- //_vm->notifyThreadId(opCall._threadId);
}
void ScriptOpcodes_Duckman::opSetDisplay(ScriptThread *scriptThread, OpCall &opCall) {
@@ -560,13 +559,13 @@ void ScriptOpcodes_Duckman::opRunSpecialCode(ScriptThread *scriptThread, OpCall
void ScriptOpcodes_Duckman::opStartSound(ScriptThread *scriptThread, OpCall &opCall) {
ARG_INT16(volume);
ARG_UINT32(soundEffectId);
- // TODO _vm->startSound(soundEffectId, volume, pan);
+ _vm->_soundMan->playSound(soundEffectId, volume, 0);
}
void ScriptOpcodes_Duckman::opStopSound(ScriptThread *scriptThread, OpCall &opCall) {
ARG_SKIP(2);
ARG_UINT32(soundEffectId);
- // TODO _vm->stopSound(soundEffectId);
+ _vm->_soundMan->stopSound(soundEffectId);
}
void ScriptOpcodes_Duckman::opStartMidiMusic(ScriptThread *scriptThread, OpCall &opCall) {