mirror of
https://github.com/libretro/scummvm.git
synced 2025-05-13 09:36:21 +00:00
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:
parent
12bf681ee8
commit
c6947285d2
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user