aboutsummaryrefslogtreecommitdiff
path: root/engines/toon
diff options
context:
space:
mode:
authorTorbjörn Andersson2010-10-10 16:13:55 +0000
committerTorbjörn Andersson2010-10-10 16:13:55 +0000
commit1f6bc7e3095bcf8cac4daba79859fa1c23deea52 (patch)
tree39aa8067dae44e7a0e9bf8774f4bae77bfe6812b /engines/toon
parentc952f7aa58e74437b1d8257409a782174b337f83 (diff)
downloadscummvm-rg350-1f6bc7e3095bcf8cac4daba79859fa1c23deea52.tar.gz
scummvm-rg350-1f6bc7e3095bcf8cac4daba79859fa1c23deea52.tar.bz2
scummvm-rg350-1f6bc7e3095bcf8cac4daba79859fa1c23deea52.zip
TOON: Fix distortion in some looped music
This was very noticeable in the footman conversation music. svn-id: r53125
Diffstat (limited to 'engines/toon')
-rw-r--r--engines/toon/audio.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/toon/audio.cpp b/engines/toon/audio.cpp
index 228e583832..192265de85 100644
--- a/engines/toon/audio.cpp
+++ b/engines/toon/audio.cpp
@@ -245,6 +245,8 @@ bool AudioStreamInstance::readPacket() {
if (_looping) {
_file->seek(8);
_currentReadSize = 8;
+ _lastADPCMval1 = 0;
+ _lastADPCMval2 = 0;
} else {
_bufferSize = 0;
stopNow();
@@ -325,7 +327,7 @@ void AudioStreamInstance::decodeADPCM(uint8 *comp, int16 *dest, int32 packetSize
*dest = v18;
comp += v29;
- dest ++;
+ dest++;
}
_lastADPCMval1 = v18;