Skip to content

Commit

Permalink
audio: Fixed compiler warning on Visual Studio.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Sep 23, 2017
1 parent 58d1c54 commit 099ae43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/audio/SDL_audiocvt.c
Expand Up @@ -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;
Expand Down

0 comments on commit 099ae43

Please sign in to comment.