src/audio/SDL_wave.c
changeset 8831 9326ec96c132
parent 8820 0e935d5b193a
child 8879 f6e4f24df1ac
equal deleted inserted replaced
8830:2d74f0c59cc7 8831:9326ec96c132
   341     unsigned int c, channels;
   341     unsigned int c, channels;
   342 
   342 
   343     /* Check to make sure we have enough variables in the state array */
   343     /* Check to make sure we have enough variables in the state array */
   344     channels = IMA_ADPCM_state.wavefmt.channels;
   344     channels = IMA_ADPCM_state.wavefmt.channels;
   345     if (channels > SDL_arraysize(IMA_ADPCM_state.state)) {
   345     if (channels > SDL_arraysize(IMA_ADPCM_state.state)) {
   346         SDL_SetError("IMA ADPCM decoder can only handle %d channels",
   346         SDL_SetError("IMA ADPCM decoder can only handle %zu channels",
   347                      SDL_arraysize(IMA_ADPCM_state.state));
   347                      SDL_arraysize(IMA_ADPCM_state.state));
   348         return (-1);
   348         return (-1);
   349     }
   349     }
   350     state = IMA_ADPCM_state.state;
   350     state = IMA_ADPCM_state.state;
   351 
   351