aboutsummaryrefslogtreecommitdiff
path: root/kyra/script_v1.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2006-01-12 13:16:42 +0000
committerJohannes Schickel2006-01-12 13:16:42 +0000
commit2416254e494d93b52009548f940f7ca28bc4db6d (patch)
treea817a40a50d3a8d1e8657958db5fe7f22c300057 /kyra/script_v1.cpp
parentb3826575393d324f703e733a99468b97ccc0456c (diff)
downloadscummvm-rg350-2416254e494d93b52009548f940f7ca28bc4db6d.tar.gz
scummvm-rg350-2416254e494d93b52009548f940f7ca28bc4db6d.tar.bz2
scummvm-rg350-2416254e494d93b52009548f940f7ca28bc4db6d.zip
Implemented 'ingame' sound handling, and named the unknown opcodes from the cd version
and 'implemented' them. svn-id: r19988
Diffstat (limited to 'kyra/script_v1.cpp')
-rw-r--r--kyra/script_v1.cpp26
1 files changed, 20 insertions, 6 deletions
diff --git a/kyra/script_v1.cpp b/kyra/script_v1.cpp
index 206af7a3a5..c4544ccb4c 100644
--- a/kyra/script_v1.cpp
+++ b/kyra/script_v1.cpp
@@ -264,12 +264,14 @@ int KyraEngine::cmd_fadeSpecialPalette(ScriptState *script) {
}
int KyraEngine::cmd_playAdlibSound(ScriptState *script) {
- warning("STUB: cmd_playAdlibSound");
+ debug(3, "cmd_playAdlibSound(0x%X) (%d)", script, stackPos(0));
+ snd_playSoundEffect(stackPos(0));
return 0;
}
int KyraEngine::cmd_playAdlibScore(ScriptState *script) {
- warning("STUB: cmd_playAdlibScore");
+ debug(3, "cmd_playAdlibScore(0x%X) (%d, %d)", script, stackPos(0), stackPos(1));
+ snd_playWanderScoreViaMap(stackPos(0), stackPos(1));
return 0;
}
@@ -1234,22 +1236,22 @@ int KyraEngine::cmd_makeAmuletAppear(ScriptState *script) {
if (amulet.opened()) {
assert(_amuleteAnim);
_screen->hideMouse();
- // snd_kyraPlaySound(0x70);
+ snd_playSoundEffect(0x70);
uint32 nextTime = 0;
for (int i = 0; _amuleteAnim[i] != 0xFF; ++i) {
nextTime = _system->getMillis() + 5 * _tickLength;
uint8 code = _amuleteAnim[i];
if (code == 3 || code == 7) {
- // snd_kyraPlaySound(0x71);
+ snd_playSoundEffect(0x71);
}
if (code == 5) {
- // snd_kyraPlaySound(0x72);
+ snd_playSoundEffect(0x72);
}
if (code == 14) {
- // snd_kyraPlaySound(0x73);
+ snd_playSoundEffect(0x73);
}
@@ -1697,6 +1699,18 @@ int KyraEngine::cmd_fillRect(ScriptState *script) {
return 0;
}
+int KyraEngine::cmd_vocUnload(ScriptState *script) {
+ debug(3, "cmd_vocUnload(0x%X) ()", script);
+ // this should unload all voc files (not needed)
+ return 0;
+}
+
+int KyraEngine::cmd_vocLoad(ScriptState *script) {
+ debug(3, "cmd_vocLoad(0x%X) (%d)", script, stackPos(0));
+ // this should load the specified voc file (not needed)
+ return 0;
+}
+
int KyraEngine::cmd_dummy(ScriptState *script) {
debug(3, "cmd_dummy(0x%X) ()", script);
return 0;