mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user