From 8d0ef7a05ddbe90ea5686cd31a5bec63c4ab81ca Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 3 Dec 2008 21:47:31 +0000 Subject: The "sound" debug command now works correctly in DW2 svn-id: r35225 --- engines/tinsel/debugger.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'engines/tinsel') diff --git a/engines/tinsel/debugger.cpp b/engines/tinsel/debugger.cpp index 3ade360445..904763e228 100644 --- a/engines/tinsel/debugger.cpp +++ b/engines/tinsel/debugger.cpp @@ -136,10 +136,14 @@ bool Console::cmd_sound(int argc, const char **argv) { } int id = strToInt(argv[1]); - if (_vm->_sound->sampleExists(id)) - _vm->_sound->playSample(id, Audio::Mixer::kSpeechSoundType); - else + if (_vm->_sound->sampleExists(id)) { + if (!TinselV2) + _vm->_sound->playSample(id, Audio::Mixer::kSpeechSoundType); + else + _vm->_sound->playSample(id, 0, false, 0, 0, PRIORITY_TALK, Audio::Mixer::kSpeechSoundType); + } else { DebugPrintf("Sample %d does not exist!\n", id); + } return true; } -- cgit v1.2.3