[Scummvm-cvs-logs] SF.net SVN: scummvm:[52909] scummvm/branches/branch-1-2-0/engines/agos/ sound.cpp
eriktorbjorn at users.sourceforge.net
eriktorbjorn at users.sourceforge.net
Sun Sep 26 14:29:40 CEST 2010
Revision: 52909
http://scummvm.svn.sourceforge.net/scummvm/?rev=52909&view=rev
Author: eriktorbjorn
Date: 2010-09-26 12:29:40 +0000 (Sun, 26 Sep 2010)
Log Message:
-----------
AGOS: Hopefully fix bug #3000876 ("FF Crackling/static popping")
Backported from the trunk. I think it was caused by not counting the
first eight byte as part of the WAV data.
Modified Paths:
--------------
scummvm/branches/branch-1-2-0/engines/agos/sound.cpp
Modified: scummvm/branches/branch-1-2-0/engines/agos/sound.cpp
===================================================================
--- scummvm/branches/branch-1-2-0/engines/agos/sound.cpp 2010-09-26 12:28:26 UTC (rev 52908)
+++ scummvm/branches/branch-1-2-0/engines/agos/sound.cpp 2010-09-26 12:29:40 UTC (rev 52909)
@@ -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