diff options
author | Johannes Schickel | 2010-09-13 12:19:19 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-09-13 12:19:19 +0000 |
commit | c6afdbdca393fff7eb18782270587fe323369ef4 (patch) | |
tree | 920f4f76c07716ecaea0492db2f5b21a2db09beb | |
parent | 4ac61cc29058dfa5d18dfc55dcec55afcdace78a (diff) | |
download | scummvm-rg350-c6afdbdca393fff7eb18782270587fe323369ef4.tar.gz scummvm-rg350-c6afdbdca393fff7eb18782270587fe323369ef4.tar.bz2 scummvm-rg350-c6afdbdca393fff7eb18782270587fe323369ef4.zip |
KYRA3: Add some sound debug output.
svn-id: r52699
-rw-r--r-- | engines/kyra/sound_digital.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/engines/kyra/sound_digital.cpp b/engines/kyra/sound_digital.cpp index 5b5a548f4a..150bafbef3 100644 --- a/engines/kyra/sound_digital.cpp +++ b/engines/kyra/sound_digital.cpp @@ -158,7 +158,6 @@ AUDStream::AUDStream(Common::SeekableReadStream *stream) : _stream(stream), _end _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 @@ AUDStream::AUDStream(Common::SeekableReadStream *stream) : _stream(stream), _end _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 @@ int SoundDigital::playSound(const char *filename, uint8 priority, Audio::Mixer:: 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); |