aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/agi/sound.cpp2
-rw-r--r--engines/agi/sound.h2
2 files changed, 2 insertions, 2 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)
diff --git a/engines/agi/sound.h b/engines/agi/sound.h
index e075e9820e..d856b0cf5c 100644
--- a/engines/agi/sound.h
+++ b/engines/agi/sound.h
@@ -102,7 +102,7 @@ struct IIgsWaveInfo {
#define OSC_MODE_SWAP 3
uint mode;
bool halt;
- uint16 relPitch; ///< 8b.8b fixed point, big endian?
+ int16 relPitch; ///< Relative pitch in semitones (Signed 8b.8b fixed point)
/** Reads an Apple IIGS wave information structure from the given stream. */
bool read(Common::SeekableReadStream &stream, bool ignoreAddr = false);