[Scummvm-cvs-logs] SF.net SVN: scummvm:[35225] scummvm/trunk/engines/tinsel/debugger.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Wed Dec 3 22:47:31 CET 2008
Revision: 35225
http://scummvm.svn.sourceforge.net/scummvm/?rev=35225&view=rev
Author: thebluegr
Date: 2008-12-03 21:47:31 +0000 (Wed, 03 Dec 2008)
Log Message:
-----------
The "sound" debug command now works correctly in DW2
Modified Paths:
--------------
scummvm/trunk/engines/tinsel/debugger.cpp
Modified: scummvm/trunk/engines/tinsel/debugger.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/debugger.cpp 2008-12-03 21:30:41 UTC (rev 35224)
+++ scummvm/trunk/engines/tinsel/debugger.cpp 2008-12-03 21:47:31 UTC (rev 35225)
@@ -136,10 +136,14 @@
}
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;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list