aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/animation.cpp
diff options
context:
space:
mode:
authorRobert Špalek2010-07-03 05:05:28 +0000
committerRobert Špalek2010-07-03 05:05:28 +0000
commit0fd3558986e7c0a0c08f3df18d6c8ce59da79110 (patch)
treedd18d8144545f10f3b7869130fc12a3adfada67f /engines/draci/animation.cpp
parent8d26e7c2d26c0a7c6521631bf861f8613a307dce (diff)
downloadscummvm-rg350-0fd3558986e7c0a0c08f3df18d6c8ce59da79110.tar.gz
scummvm-rg350-0fd3558986e7c0a0c08f3df18d6c8ce59da79110.tar.bz2
scummvm-rg350-0fd3558986e7c0a0c08f3df18d6c8ce59da79110.zip
Finish support of compressed dubbing
Now even the length of a compressed stream is measured precisely and the dubbing sounds exactly like the original. svn-id: r50618
Diffstat (limited to 'engines/draci/animation.cpp')
-rw-r--r--engines/draci/animation.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/draci/animation.cpp b/engines/draci/animation.cpp
index e46582487c..2bedbe1801 100644
--- a/engines/draci/animation.cpp
+++ b/engines/draci/animation.cpp
@@ -166,10 +166,10 @@ void Animation::drawFrame(Surface *surface) {
const SoundSample *sample = _samples[_currentFrame];
if (_hasChangedFrame && sample) {
+ uint duration = _vm->_sound->playSound(sample, Audio::Mixer::kMaxChannelVolume, false);
debugC(3, kDraciSoundDebugLevel,
- "Playing sample on animation %d, frame %d: %d+%d at %dHz",
- _id, _currentFrame, sample->_offset, sample->_length, sample->_frequency);
- _vm->_sound->playSound(sample, Audio::Mixer::kMaxChannelVolume, false);
+ "Playing sample on animation %d, frame %d: %d+%d at %dHz: %dms",
+ _id, _currentFrame, sample->_offset, sample->_length, sample->_frequency, duration);
}
_hasChangedFrame = false;
}