Fixed compiler warning
authorSam Lantinga <slouken@libsdl.org>
Thu, 12 Oct 2017 13:55:35 -0700
changeset 116114ad5d0fccc9f
parent 11610 6dea196ecbcb
child 11612 d42aebb99149
Fixed compiler warning
src/audio/SDL_audiocvt.c
     1.1 --- a/src/audio/SDL_audiocvt.c	Thu Oct 12 13:44:28 2017 -0700
     1.2 +++ b/src/audio/SDL_audiocvt.c	Thu Oct 12 13:55:35 2017 -0700
     1.3 @@ -515,14 +515,14 @@
     1.4                  const int srcframe = srcindex - j;
     1.5                  /* !!! FIXME: we can bubble this conditional out of here by doing a pre loop. */
     1.6                  const float insample = (srcframe < 0) ? lpadding[((paddinglen + srcframe) * chans) + chan] : inbuf[(srcframe * chans) + chan];
     1.7 -                outsample += (insample * (ResamplerFilter[filterindex1 + (j * RESAMPLER_SAMPLES_PER_ZERO_CROSSING)] + (interpolation1 * ResamplerFilterDifference[filterindex1 + (j * RESAMPLER_SAMPLES_PER_ZERO_CROSSING)])));
     1.8 +                outsample += (float)(insample * (ResamplerFilter[filterindex1 + (j * RESAMPLER_SAMPLES_PER_ZERO_CROSSING)] + (interpolation1 * ResamplerFilterDifference[filterindex1 + (j * RESAMPLER_SAMPLES_PER_ZERO_CROSSING)])));
     1.9              }
    1.10  
    1.11              for (j = 0; (filterindex2 + (j * RESAMPLER_SAMPLES_PER_ZERO_CROSSING)) < RESAMPLER_FILTER_SIZE; j++) {
    1.12                  const int srcframe = srcindex + 1 + j;
    1.13                  /* !!! FIXME: we can bubble this conditional out of here by doing a post loop. */
    1.14                  const float insample = (srcframe >= inframes) ? rpadding[((srcframe - inframes) * chans) + chan] : inbuf[(srcframe * chans) + chan];
    1.15 -                outsample += (insample * (ResamplerFilter[filterindex2 + (j * RESAMPLER_SAMPLES_PER_ZERO_CROSSING)] + (interpolation2 * ResamplerFilterDifference[filterindex2 + (j * RESAMPLER_SAMPLES_PER_ZERO_CROSSING)])));
    1.16 +                outsample += (float)(insample * (ResamplerFilter[filterindex2 + (j * RESAMPLER_SAMPLES_PER_ZERO_CROSSING)] + (interpolation2 * ResamplerFilterDifference[filterindex2 + (j * RESAMPLER_SAMPLES_PER_ZERO_CROSSING)])));
    1.17              }
    1.18              *(dst++) = outsample;
    1.19          }