src/audio/SDL_wave.c
changeset 8976 1a5d959d7b32
parent 8909 a894224dc538
child 8980 66824b0e330a
equal deleted inserted replaced
8975:180271d72b1e 8976:1a5d959d7b32
   343     unsigned int c, channels;
   343     unsigned int c, channels;
   344 
   344 
   345     /* Check to make sure we have enough variables in the state array */
   345     /* Check to make sure we have enough variables in the state array */
   346     channels = IMA_ADPCM_state.wavefmt.channels;
   346     channels = IMA_ADPCM_state.wavefmt.channels;
   347     if (channels > SDL_arraysize(IMA_ADPCM_state.state)) {
   347     if (channels > SDL_arraysize(IMA_ADPCM_state.state)) {
   348         SDL_SetError("IMA ADPCM decoder can only handle %zu channels",
   348         SDL_SetError("IMA ADPCM decoder can only handle %u channels",
   349                      SDL_arraysize(IMA_ADPCM_state.state));
   349                      SDL_arraysize(IMA_ADPCM_state.state));
   350         return (-1);
   350         return (-1);
   351     }
   351     }
   352     state = IMA_ADPCM_state.state;
   352     state = IMA_ADPCM_state.state;
   353 
   353