Skip to content

Commit

Permalink
SCI: Add more verbose debug output for DoAudio in SCI2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegr committed Jun 11, 2012
1 parent fe44939 commit 0ccfd61
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions engines/sci/engine/ksound.cpp
Expand Up @@ -140,8 +140,12 @@ reg_t kDoAudio(EngineState *s, int argc, reg_t *argv) {
((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");
if (argc == 8) {
// argv[6] is always 1
// argv[7] is the contents of global 229 (0xE5)
warning("kDoAudio: Play called with SCI2.1 extra parameters: %04x:%04x and %04x:%04x",
PRINT_REG(argv[6]), PRINT_REG(argv[7]));
}
} else {
warning("kDoAudio: Play called with an unknown number of parameters (%d)", argc);
return NULL_REG;
Expand Down

0 comments on commit 0ccfd61

Please sign in to comment.