aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/scumm/player_mac.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/player_mac.cpp b/engines/scumm/player_mac.cpp
index 470bdaff30..2286a158ab 100644
--- a/engines/scumm/player_mac.cpp
+++ b/engines/scumm/player_mac.cpp
@@ -372,7 +372,7 @@ void Player_Mac::Instrument::generateSamples(int16 *data, int pitchModifier, int
}
}
- int newSample = ((_data[_pos] - 129) * 128 * volume) / 255;
+ int newSample = (((int16)((_data[_pos] << 8) ^ 0x8000)) * volume) / 255;
// Fade out the last 100 samples on each note. Even at low
// output sample rates this is just a fraction of a second,