Some patches to make SDL compile with armcc (ARM's C compiler).

This commit is contained in:
Ryan C. Gordon 2017-03-02 13:33:04 -05:00
parent 86906a708a
commit 04142af157
5 changed files with 15 additions and 6 deletions

View file

@ -439,7 +439,10 @@ SDL_ResampleCVT_si16_c2(SDL_AudioCVT *cvt, SDL_AudioFormat format)
const int srclen = cvt->len_cvt;
Sint16 *dst = (Sint16 *) cvt->buf;
const int dstlen = (cvt->len * cvt->len_mult);
Sint16 state[2] = { src[0], src[1] };
Sint16 state[2];
state[0] = src[0];
state[1] = src[1];
SDL_assert(format == AUDIO_S16SYS);