From 39ebb168a1e891e89559f40e039ac3f7a779bad1 Mon Sep 17 00:00:00 2001 From: Lars Skovlund Date: Thu, 28 Jan 2010 23:11:55 +0000 Subject: SCI: Make SQ6 sound work. The meaning of these extra parameters is not yet understood. svn-id: r47660 --- engines/sci/engine/ksound.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/sci/engine') diff --git a/engines/sci/engine/ksound.cpp b/engines/sci/engine/ksound.cpp index e4efc4d1f9..adb7d60c14 100644 --- a/engines/sci/engine/ksound.cpp +++ b/engines/sci/engine/ksound.cpp @@ -106,10 +106,12 @@ reg_t kDoAudio(EngineState *s, int argc, reg_t *argv) { if (argc == 2) { module = 65535; number = argv[1].toUint16(); - } else if (argc == 6) { + } else if (argc == 6 || argc == 8) { module = argv[1].toUint16(); number = ((argv[2].toUint16() & 0xff) << 24) | ((argv[3].toUint16() & 0xff) << 16) | ((argv[4].toUint16() & 0xff) << 8) | (argv[5].toUint16() & 0xff); + if (argc == 8) + warning("kDoAudio: Play called with SQ6 extra parameters"); } else { warning("kDoAudio: Play called with an unknown number of parameters (%d)", argc); return NULL_REG; -- cgit v1.2.3