mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-21 01:05:59 +00:00
Fixing compile for me, hopefully not breaking it for the MSVC8 again...
svn-id: r26508
This commit is contained in:
parent
2c3e9e087f
commit
c8396a283d
@ -235,7 +235,7 @@ void Snd::stopSound(int16 fadeLength, SoundDesc *sndDesc) {
|
||||
_fade = true;
|
||||
_fadeVol = 65536;
|
||||
_fadeSamples = (int) (fadeLength * (((double) _rate) / 10.0));
|
||||
_fadeVolStep = MAX(1UL, 65536 / _fadeSamples);
|
||||
_fadeVolStep = MAX((int32) 1, (int32) (65536 / _fadeSamples));
|
||||
_curFadeSamples = 0;
|
||||
}
|
||||
|
||||
@ -341,7 +341,7 @@ void Snd::setSample(SoundDesc &sndDesc, int16 repCount, int16 frequency,
|
||||
_fade = true;
|
||||
_fadeVol = 0;
|
||||
_fadeSamples = (int) (fadeLength * (((double) _rate) / 10.0));
|
||||
_fadeVolStep = - (int32)MAX(1UL, 65536 / _fadeSamples);
|
||||
_fadeVolStep = - MAX((int32) 1, (int32) (65536 / _fadeSamples));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user