aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorKirben2016-02-25 20:46:47 +1100
committerKirben2016-02-25 20:46:47 +1100
commit6ac4c9dedbe3d05f5424a4268c08fbaec86287d9 (patch)
treeec520e5bab79217531ae9429f15a4f6a475a9526 /engines/scumm
parentfdcdf7e3265da077387df8df35848e0094aa7417 (diff)
downloadscummvm-rg350-6ac4c9dedbe3d05f5424a4268c08fbaec86287d9.tar.gz
scummvm-rg350-6ac4c9dedbe3d05f5424a4268c08fbaec86287d9.tar.bz2
scummvm-rg350-6ac4c9dedbe3d05f5424a4268c08fbaec86287d9.zip
SCUMM: Fix the lip sync animation in later HE games.
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/he/sound_he.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/he/sound_he.cpp b/engines/scumm/he/sound_he.cpp
index a78aff96f8..b806a9f3cc 100644
--- a/engines/scumm/he/sound_he.cpp
+++ b/engines/scumm/he/sound_he.cpp
@@ -636,7 +636,7 @@ void SoundHE::playHESound(int soundID, int heOffset, int heChannel, int heFlags)
if (heFlags & 1) {
_heChannel[heChannel].timer = 0;
} else {
- _heChannel[heChannel].timer = size * 1000 / rate;
+ _heChannel[heChannel].timer = size * 1000 / (rate * blockAlign);
}
_mixer->stopHandle(_heSoundChannels[heChannel]);
@@ -658,7 +658,7 @@ void SoundHE::playHESound(int soundID, int heOffset, int heChannel, int heFlags)
_heChannel[heChannel].rate = rate;
if (_heChannel[heChannel].timer)
- _heChannel[heChannel].timer = size * 1000 / rate;
+ _heChannel[heChannel].timer = size * 1000 / (rate * blockAlign);
// makeADPCMStream returns a stream in native endianness, but RawMemoryStream
// defaults to big endian. If we're on a little endian system, set the LE flag.