From 099ae43e81d83a845204e0e859596d4000673c84 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Fri, 22 Sep 2017 22:28:21 -0400 Subject: [PATCH] audio: Fixed compiler warning on Visual Studio. --- src/audio/SDL_audiocvt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/SDL_audiocvt.c b/src/audio/SDL_audiocvt.c index 4b24ccdb393dd..f2d24648174f3 100644 --- a/src/audio/SDL_audiocvt.c +++ b/src/audio/SDL_audiocvt.c @@ -497,7 +497,7 @@ SDL_ResampleAudio(const int chans, const int inrate, const int outrate, const float interpolation1 = 1.0f - (innexttime - outtime) / (innexttime - intime); const int filterindex1 = (int) (interpolation1 * RESAMPLER_SAMPLES_PER_ZERO_CROSSING); const float interpolation2 = 1.0f - interpolation1; - const int filterindex2 = interpolation2 * RESAMPLER_SAMPLES_PER_ZERO_CROSSING; + const int filterindex2 = (int) (interpolation2 * RESAMPLER_SAMPLES_PER_ZERO_CROSSING); for (chan = 0; chan < chans; chan++) { float outsample = 0.0f;