Skip to content

Commit

Permalink
SCUMM: Fix the lip sync animation in later HE games.
Browse files Browse the repository at this point in the history
(cherry picked from commit 6ac4c9d)
  • Loading branch information
Kirben authored and Johannes Schickel committed Feb 26, 2016
1 parent b64cb16 commit 19bbf80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions engines/scumm/he/sound_he.cpp
Expand Up @@ -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]);
Expand All @@ -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.
Expand Down

0 comments on commit 19bbf80

Please sign in to comment.