src/audio/SDL_audiocvt.c
changeset 10805 30a00d960dc9
parent 10804 1502bb751ca4
child 10814 938218064f67
     1.1 --- a/src/audio/SDL_audiocvt.c	Mon Jan 09 16:31:57 2017 -0500
     1.2 +++ b/src/audio/SDL_audiocvt.c	Mon Jan 09 20:37:52 2017 -0800
     1.3 @@ -378,13 +378,10 @@
     1.4      float *dst = (float *) (cvt->buf + srclen);
     1.5      const int dstlen = (cvt->len * cvt->len_mult) - srclen;
     1.6      float state[8];
     1.7 -    int i;
     1.8  
     1.9      SDL_assert(format == AUDIO_F32SYS);
    1.10  
    1.11 -    for (i = 0; i < chans; i++) {
    1.12 -        state[i] = src[i];
    1.13 -    }
    1.14 +    SDL_memcpy(state, src, chans*sizeof(*src));
    1.15  
    1.16      cvt->len_cvt = SDL_ResampleAudioSimple(chans, cvt->rate_incr, state, src, srclen, dst, dstlen);
    1.17