aboutsummaryrefslogtreecommitdiff
path: root/engines/tinsel
diff options
context:
space:
mode:
authorFilippos Karapetis2008-12-03 21:47:31 +0000
committerFilippos Karapetis2008-12-03 21:47:31 +0000
commit8d0ef7a05ddbe90ea5686cd31a5bec63c4ab81ca (patch)
tree99fc950f143078684af9cd71f0747bdb21acc670 /engines/tinsel
parenta871e0115174040ca8a331ec80616605d3cad1a2 (diff)
downloadscummvm-rg350-8d0ef7a05ddbe90ea5686cd31a5bec63c4ab81ca.tar.gz
scummvm-rg350-8d0ef7a05ddbe90ea5686cd31a5bec63c4ab81ca.tar.bz2
scummvm-rg350-8d0ef7a05ddbe90ea5686cd31a5bec63c4ab81ca.zip
The "sound" debug command now works correctly in DW2
svn-id: r35225
Diffstat (limited to 'engines/tinsel')
-rw-r--r--engines/tinsel/debugger.cpp10
1 files changed, 7 insertions, 3 deletions
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;
}