aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/sound.cpp
diff options
context:
space:
mode:
authorKari Salminen2007-08-28 10:41:25 +0000
committerKari Salminen2007-08-28 10:41:25 +0000
commita4780a8f823ea0ca0cf68f7b7b7b86d7e3b32eb4 (patch)
treee04b64b31cc333de17bcc358c6adb5745086802a /engines/agi/sound.cpp
parenta8149227bfb9306df212a0754e046cc62382fa54 (diff)
downloadscummvm-rg350-a4780a8f823ea0ca0cf68f7b7b7b86d7e3b32eb4.tar.gz
scummvm-rg350-a4780a8f823ea0ca0cf68f7b7b7b86d7e3b32eb4.tar.bz2
scummvm-rg350-a4780a8f823ea0ca0cf68f7b7b7b86d7e3b32eb4.zip
Fix relative pitch handling (It's signed, was interpreted as unsigned before).
svn-id: r28759
Diffstat (limited to 'engines/agi/sound.cpp')
-rw-r--r--engines/agi/sound.cpp2
1 files changed, 1 insertions, 1 deletions
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)