[Scummvm-cvs-logs] scummvm branch-1-8 -> 19bbf80667eed00f42250d19fe5b166bf740c66a
lordhoto
lordhoto at gmail.com
Fri Feb 26 13:41:18 CET 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
19bbf80667 SCUMM: Fix the lip sync animation in later HE games.
Commit: 19bbf80667eed00f42250d19fe5b166bf740c66a
https://github.com/scummvm/scummvm/commit/19bbf80667eed00f42250d19fe5b166bf740c66a
Author: Kirben (kirben at optusnet.com.au)
Date: 2016-02-26T13:40:51+01:00
Commit Message:
SCUMM: Fix the lip sync animation in later HE games.
(cherry picked from commit 6ac4c9dedbe3d05f5424a4268c08fbaec86287d9)
Changed paths:
engines/scumm/he/sound_he.cpp
diff --git a/engines/scumm/he/sound_he.cpp b/engines/scumm/he/sound_he.cpp
index a78aff9..b806a9f 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.
More information about the Scummvm-git-logs
mailing list