Lines Matching refs:audio_len
117 static int MS_ADPCM_decode(Uint8 **audio_buf, Uint32 *audio_len)
127 encoded_len = *audio_len;
130 *audio_len = (encoded_len/MS_ADPCM_state.wavefmt.blockalign) *
133 *audio_buf = (Uint8 *)SDL_malloc(*audio_len);
327 static int IMA_ADPCM_decode(Uint8 **audio_buf, Uint32 *audio_len)
344 encoded_len = *audio_len;
347 *audio_len = (encoded_len/IMA_ADPCM_state.wavefmt.blockalign) *
350 *audio_buf = (Uint8 *)SDL_malloc(*audio_len);
397 SDL_AudioSpec *spec, Uint8 **audio_buf, Uint32 *audio_len)
531 *audio_len = lenread;
538 if ( MS_ADPCM_decode(audio_buf, audio_len) < 0 ) {
544 if ( IMA_ADPCM_decode(audio_buf, audio_len) < 0 ) {
552 *audio_len &= ~(samplesize-1);