diff options
-rw-r--r-- | Alc/converter.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/converter.c b/Alc/converter.c index 6e28b4a6..ef2eb9af 100644 --- a/Alc/converter.c +++ b/Alc/converter.c @@ -27,7 +27,8 @@ SampleConverter *CreateSampleConverter(enum DevFmtType srcType, enum DevFmtType /* Have to set the mixer FPU mode since that's what the resampler code expects. */ START_MIXER_MODE(); - step = fastf2i((ALfloat)mind((ALdouble)srcRate / dstRate, MAX_PITCH)*FRACTIONONE + 0.5f); + step = (ALsizei)mind(((ALdouble)srcRate/dstRate*FRACTIONONE) + 0.5, + MAX_PITCH * FRACTIONONE); converter->mIncrement = maxi(step, 1); if(converter->mIncrement == FRACTIONONE) converter->mResample = Resample_copy_C; |