aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNipun Garg2019-07-06 02:13:11 +0530
committerEugene Sandulenko2019-09-03 17:17:13 +0200
commitf89015a90d3ce14fde272bc9653aa9cb8f3ec054 (patch)
tree9929cecb0f6ac399326d257e83b769176e015a5d
parent9b48e15b8eb1d1e140e46af377ee5d874dc3ad81 (diff)
downloadscummvm-rg350-f89015a90d3ce14fde272bc9653aa9cb8f3ec054.tar.gz
scummvm-rg350-f89015a90d3ce14fde272bc9653aa9cb8f3ec054.tar.bz2
scummvm-rg350-f89015a90d3ce14fde272bc9653aa9cb8f3ec054.zip
HDB: Add Lua functions for _sound
-rw-r--r--engines/hdb/lua-script.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/engines/hdb/lua-script.cpp b/engines/hdb/lua-script.cpp
index 0c713ec036..7c9664f796 100644
--- a/engines/hdb/lua-script.cpp
+++ b/engines/hdb/lua-script.cpp
@@ -241,12 +241,25 @@ static int cineWaitUntilDone(lua_State *L) {
}
static int cinePlaySound(lua_State *L) {
- warning("STUB: CINE PLAY SOUND");
+ double index = lua_tonumber(L, 1);
+
+ g_hdb->_lua->checkParameters("cinePlaySound", 1);
+
+ lua_pop(L, 1);
+
+ g_hdb->_ai->cinePlaySound((int)index);
return 0;
}
static int cinePlayVoice(lua_State *L) {
- warning("STUB: CINE PLAY VOICE");
+ double index = lua_tonumber(L, 1);
+ double actor = lua_tonumber(L, 2);
+
+ g_hdb->_lua->checkParameters("cinePlayVoice", 2);
+
+ lua_pop(L, 2);
+
+ g_hdb->_ai->cinePlayVoice((int)index, (int)actor);
return 0;
}