src/audio/SDL_audiocvt.c
changeset 11541 433786fcf04a
parent 11519 535b0c8ba4ce
child 11583 c48ab2c208a2
     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;