audio: Fixed compiler warning on Visual Studio.
authorRyan C. Gordon <icculus@icculus.org>
Fri, 22 Sep 2017 22:28:21 -0400
changeset 11541433786fcf04a
parent 11540 77e9aae1f9d2
child 11542 5c39c05ced36
audio: Fixed compiler warning on Visual Studio.
src/audio/SDL_audiocvt.c
     1.1 --- a/src/audio/SDL_audiocvt.c	Fri Sep 22 17:32:05 2017 -0700
     1.2 +++ b/src/audio/SDL_audiocvt.c	Fri Sep 22 22:28:21 2017 -0400
     1.3 @@ -497,7 +497,7 @@
     1.4          const float interpolation1 = 1.0f - (innexttime - outtime) / (innexttime - intime);
     1.5          const int filterindex1 = (int) (interpolation1 * RESAMPLER_SAMPLES_PER_ZERO_CROSSING);
     1.6          const float interpolation2 = 1.0f - interpolation1;
     1.7 -        const int filterindex2 = interpolation2 * RESAMPLER_SAMPLES_PER_ZERO_CROSSING;
     1.8 +        const int filterindex2 = (int) (interpolation2 * RESAMPLER_SAMPLES_PER_ZERO_CROSSING);
     1.9  
    1.10          for (chan = 0; chan < chans; chan++) {
    1.11              float outsample = 0.0f;