mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-08 19:06:26 +00:00
Fix some more compiler warnings on armcc.
This commit is contained in:
@@ -1038,9 +1038,8 @@ SDL_ResampleAudioStream_si16_c2(SDL_AudioStream *stream, const void *_inbuf, con
|
||||
const Sint16 *inbuf = (const Sint16 *) _inbuf;
|
||||
Sint16 *outbuf = (Sint16 *) _outbuf;
|
||||
SDL_AudioStreamResamplerState *state = (SDL_AudioStreamResamplerState*)stream->resampler_state;
|
||||
const int chans = (int)stream->pre_resample_channels;
|
||||
|
||||
SDL_assert(chans <= SDL_arraysize(state->resampler_state.si16));
|
||||
SDL_assert(((int)stream->pre_resample_channels) <= SDL_arraysize(state->resampler_state.si16));
|
||||
|
||||
if (!state->resampler_seeded) {
|
||||
state->resampler_state.si16[0] = inbuf[0];
|
||||
|
Reference in New Issue
Block a user