[Scummvm-cvs-logs] SF.net SVN: scummvm:[52699] scummvm/trunk/engines/kyra/sound_digital.cpp

lordhoto at users.sourceforge.net lordhoto at users.sourceforge.net
Mon Sep 13 14:19:19 CEST 2010


Revision: 52699
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52699&view=rev
Author:   lordhoto
Date:     2010-09-13 12:19:19 +0000 (Mon, 13 Sep 2010)

Log Message:
-----------
KYRA3: Add some sound debug output.

Modified Paths:
--------------
    scummvm/trunk/engines/kyra/sound_digital.cpp

Modified: scummvm/trunk/engines/kyra/sound_digital.cpp
===================================================================
--- scummvm/trunk/engines/kyra/sound_digital.cpp	2010-09-12 23:10:31 UTC (rev 52698)
+++ scummvm/trunk/engines/kyra/sound_digital.cpp	2010-09-13 12:19:19 UTC (rev 52699)
@@ -158,7 +158,6 @@
 	_outBufferOffset(0), _outBufferSize(0), _inBuffer(0), _inBufferSize(0) {
 
 	_rate = _stream->readUint16LE();
-	_length = Audio::Timestamp(0, _rate);
 	_totalSize = _stream->readUint32LE();
 
 	// TODO?: add checks
@@ -167,6 +166,9 @@
 
 	_streamStart = stream->pos();
 
+	debugC(5, kDebugLevelSound, "AUD Info: rate: %d, totalSize: %d, flags: %d, type: %d, streamStart: %d", _rate, _totalSize, flags, type, _streamStart);
+
+	_length = Audio::Timestamp(0, _rate);
 	for (uint32 i = 0; i < _totalSize;) {
 		uint16 size = _stream->readUint16LE();
 		uint16 outSize = _stream->readUint16LE();
@@ -460,6 +462,7 @@
 
 	Common::strlcpy(use->filename, filename, sizeof(use->filename));
 	use->priority = priority;
+	debugC(5, kDebugLevelSound, "playSound: \"%s\"", use->filename);
 	Audio::SeekableAudioStream *audioStream = _supportedCodecs[usedCodec].streamFunc(stream, DisposeAfterUse::YES);
 	if (!audioStream) {
 		warning("Couldn't create audio stream for file '%s'", filename);


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