From c6947285d244f06901c3e479c873f0b0db9c0bfb Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 12 Dec 2008 22:56:56 +0000 Subject: 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 --- engines/saga/sndres.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/saga/sndres.cpp b/engines/saga/sndres.cpp index 29de6f6be1..9742657523 100644 --- a/engines/saga/sndres.cpp +++ b/engines/saga/sndres.cpp @@ -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(); -- cgit v1.2.3