Fixed a regression of commit #34458. Sound data for compressed sounds was read incorrectly. Fixes bugs #2422371 - "ITE: Talk animation takes longer than speaking" and #2111496 - "IHNM: Speech is garbled"

svn-id: r35320
This commit is contained in:
Filippos Karapetis 2008-12-12 22:56:56 +00:00
parent 12bf681ee8
commit c6947285d2

View File

@ -376,7 +376,7 @@ bool SndRes::load(ResourceContext *context, uint32 resourceId, SoundBuffer &buff
resourceData = context->getResourceData(resourceId);
// Read compressed sfx header
readS.seek(1); // Skip compression identifier byte
readS.readByte(); // Skip compression identifier byte
buffer.frequency = readS.readUint16LE();
buffer.originalSize = readS.readUint32LE();
buffer.sampleBits = readS.readByte();