SCI: Make SQ6 sound work. The meaning of these extra parameters is not yet understood.

svn-id: r47660
This commit is contained in:
Lars Skovlund 2010-01-28 23:11:55 +00:00
parent e110b02895
commit 39ebb168a1

View File

@ -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;