diff options
author | Torbjörn Andersson | 2010-09-26 12:28:26 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2010-09-26 12:28:26 +0000 |
commit | ad0200988832697ae2531a45a7ca53870afea6d0 (patch) | |
tree | b4d3b4db4ca7ac092c9a4ee343b24e28a09c9842 | |
parent | 184833924b851b8da29101b868269b785d17cd17 (diff) | |
download | scummvm-rg350-ad0200988832697ae2531a45a7ca53870afea6d0.tar.gz scummvm-rg350-ad0200988832697ae2531a45a7ca53870afea6d0.tar.bz2 scummvm-rg350-ad0200988832697ae2531a45a7ca53870afea6d0.zip |
AGOS: Hopefully fix bug #3000876 ("FF: Crackling/static popping")
We want the WAV stream in playSounData() to contain the entire WAV
data, but the size we read does not include the eight first bytes.
svn-id: r52908
-rw-r--r-- | engines/agos/sound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agos/sound.cpp b/engines/agos/sound.cpp index bd4c89a404..6ec72814fa 100644 --- a/engines/agos/sound.cpp +++ b/engines/agos/sound.cpp @@ -776,7 +776,7 @@ void Sound::playVoiceData(byte *soundData, uint sound) { } void Sound::playSoundData(Audio::SoundHandle *handle, byte *soundData, uint sound, int pan, int vol, bool loop) { - int size = READ_LE_UINT32(soundData + 4); + int size = READ_LE_UINT32(soundData + 4) + 8; Common::MemoryReadStream *stream = new Common::MemoryReadStream(soundData, size); Audio::RewindableAudioStream *sndStream = Audio::makeWAVStream(stream, DisposeAfterUse::YES); |