aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorSven Hesse2009-03-19 19:17:29 +0000
committerSven Hesse2009-03-19 19:17:29 +0000
commit21c87385bc53c5d4d9cdcee928ead8719033591c (patch)
tree54ba56d866fa86a052161c459138132be37cb66b /engines
parent38baf3b19f0369c4b4dcceca1fd03aca5e076d67 (diff)
downloadscummvm-rg350-21c87385bc53c5d4d9cdcee928ead8719033591c.tar.gz
scummvm-rg350-21c87385bc53c5d4d9cdcee928ead8719033591c.tar.bz2
scummvm-rg350-21c87385bc53c5d4d9cdcee928ead8719033591c.zip
Added some more debug messages
svn-id: r39532
Diffstat (limited to 'engines')
-rw-r--r--engines/tinsel/music.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/engines/tinsel/music.cpp b/engines/tinsel/music.cpp
index 51ae012e3d..699765490f 100644
--- a/engines/tinsel/music.cpp
+++ b/engines/tinsel/music.cpp
@@ -839,6 +839,10 @@ bool PCMMusicPlayer::getNextChunk() {
if (file.read(buffer, sampleCLength) != sampleCLength)
error(FILE_IS_CORRUPT, _fileName);
+ debugC(DEBUG_DETAILED, kTinselDebugMusic, "Creating ADPCM music chunk with size %d, "
+ "offset %d (script %d.%d)", sampleCLength, sampleOffset,
+ _scriptNum, _scriptIndex - 1);
+
sampleStream = new Common::MemoryReadStream(buffer, sampleCLength, true);
delete _curChunk;
@@ -849,6 +853,9 @@ bool PCMMusicPlayer::getNextChunk() {
return true;
case S_END1:
+ debugC(DEBUG_DETAILED, kTinselDebugMusic, "Music reached state S_END1 (script %d.%d)",
+ _scriptNum, _scriptIndex);
+
script = scriptBuffer = (int32 *) LockMem(_hScript);
id = _scriptNum;
@@ -869,10 +876,16 @@ bool PCMMusicPlayer::getNextChunk() {
return true;
case S_END2:
+ debugC(DEBUG_DETAILED, kTinselDebugMusic, "Music reached state S_END2 (script %d.%d)",
+ _scriptNum, _scriptIndex);
+
_silenceSamples = 11025; // Half a second of silence
return true;
case S_END3:
+ debugC(DEBUG_DETAILED, kTinselDebugMusic, "Music reached state S_END3 (script %d.%d)",
+ _scriptNum, _scriptIndex);
+
stop();
_state = S_IDLE;
return false;