From ad0200988832697ae2531a45a7ca53870afea6d0 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sun, 26 Sep 2010 12:28:26 +0000 Subject: 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 --- engines/agos/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3