[Scummvm-cvs-logs] SF.net SVN: scummvm:[52908] scummvm/trunk/engines/agos/sound.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Sun Sep 26 14:28:27 CEST 2010


Revision: 52908
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52908&view=rev
Author:   eriktorbjorn
Date:     2010-09-26 12:28:26 +0000 (Sun, 26 Sep 2010)

Log Message:
-----------
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.

Modified Paths:
--------------
    scummvm/trunk/engines/agos/sound.cpp

Modified: scummvm/trunk/engines/agos/sound.cpp
===================================================================
--- scummvm/trunk/engines/agos/sound.cpp	2010-09-26 12:23:57 UTC (rev 52907)
+++ scummvm/trunk/engines/agos/sound.cpp	2010-09-26 12:28:26 UTC (rev 52908)
@@ -776,7 +776,7 @@
 }
 
 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);
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list