aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorTorbjörn Andersson2012-11-14 20:54:25 +0100
committerTorbjörn Andersson2012-11-14 20:54:25 +0100
commit0b63ea1d8d0ddfbc2bbef629594eedecbc8b1273 (patch)
treef9db26ff02bc78a63442ccc85fb0aca1d1647d7d /engines/scumm
parent493644295da511e43289db49d8cafdf1150a73dc (diff)
downloadscummvm-rg350-0b63ea1d8d0ddfbc2bbef629594eedecbc8b1273.tar.gz
scummvm-rg350-0b63ea1d8d0ddfbc2bbef629594eedecbc8b1273.tar.bz2
scummvm-rg350-0b63ea1d8d0ddfbc2bbef629594eedecbc8b1273.zip
SCUMM: Hopefully fix warning
Excplicitly cast to int to avoid a warning that I don't get, but which clone2727 does. At least, I hope it avoids the warning.
Diffstat (limited to 'engines/scumm')
-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 565b13d74a..6bc09d3107 100644
--- a/engines/scumm/player_mac.cpp
+++ b/engines/scumm/player_mac.cpp
@@ -245,7 +245,7 @@ int Player_Mac::readBuffer(int16 *data, const int numSamples) {
// but I ran into overflow problems with the church
// music. It's only once per note, so it should be ok.
double mult = (double)(_channel[i]._instrument._rate) / (double)_sampleRate;
- _channel[i]._pitchModifier = mult * _pitchTable[pitchIdx];
+ _channel[i]._pitchModifier = (int)(mult * _pitchTable[pitchIdx]);
_channel[i]._velocity = velocity;
} else {
_channel[i]._pitchModifier = 0;