From a4780a8f823ea0ca0cf68f7b7b7b86d7e3b32eb4 Mon Sep 17 00:00:00 2001 From: Kari Salminen Date: Tue, 28 Aug 2007 10:41:25 +0000 Subject: Fix relative pitch handling (It's signed, was interpreted as unsigned before). svn-id: r28759 --- engines/agi/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/agi/sound.cpp') diff --git a/engines/agi/sound.cpp b/engines/agi/sound.cpp index 63d204f98e..e080616972 100644 --- a/engines/agi/sound.cpp +++ b/engines/agi/sound.cpp @@ -139,7 +139,7 @@ bool IIgsWaveInfo::read(Common::SeekableReadStream &stream, bool ignoreAddr) { mode = (packedModeByte >> 1) & 3; // Bits 1-2 halt = (packedModeByte & 1) != 0; // Bit 0 (Converted to boolean) - relPitch = stream.readUint16LE(); + relPitch = stream.readSint16LE(); // Zero the wave address if we want to ignore the wave address info if (ignoreAddr) -- cgit v1.2.3