Home | History | Annotate | Download | only in audio

Lines Matching refs:wavefmt

39 	WaveFMT wavefmt;
47 static int InitMS_ADPCM(WaveFMT *format)
54 MS_ADPCM_state.wavefmt.encoding = SDL_SwapLE16(format->encoding);
55 MS_ADPCM_state.wavefmt.channels = SDL_SwapLE16(format->channels);
56 MS_ADPCM_state.wavefmt.frequency = SDL_SwapLE32(format->frequency);
57 MS_ADPCM_state.wavefmt.byterate = SDL_SwapLE32(format->byterate);
58 MS_ADPCM_state.wavefmt.blockalign = SDL_SwapLE16(format->blockalign);
59 MS_ADPCM_state.wavefmt.bitspersample =
130 *audio_len = (encoded_len/MS_ADPCM_state.wavefmt.blockalign) *
132 MS_ADPCM_state.wavefmt.channels*sizeof(Sint16);
141 stereo = (MS_ADPCM_state.wavefmt.channels == 2);
144 while ( encoded_len >= MS_ADPCM_state.wavefmt.blockalign ) {
191 MS_ADPCM_state.wavefmt.channels;
210 encoded_len -= MS_ADPCM_state.wavefmt.blockalign;
221 WaveFMT wavefmt;
227 static int InitIMA_ADPCM(WaveFMT *format)
233 IMA_ADPCM_state.wavefmt.encoding = SDL_SwapLE16(format->encoding);
234 IMA_ADPCM_state.wavefmt.channels = SDL_SwapLE16(format->channels);
235 IMA_ADPCM_state.wavefmt.frequency = SDL_SwapLE32(format->frequency);
236 IMA_ADPCM_state.wavefmt.byterate = SDL_SwapLE32(format->byterate);
237 IMA_ADPCM_state.wavefmt.blockalign = SDL_SwapLE16(format->blockalign);
238 IMA_ADPCM_state.wavefmt.bitspersample =
335 channels = IMA_ADPCM_state.wavefmt.channels;
347 *audio_len = (encoded_len/IMA_ADPCM_state.wavefmt.blockalign) *
349 IMA_ADPCM_state.wavefmt.channels*sizeof(Sint16);
358 while ( encoded_len >= IMA_ADPCM_state.wavefmt.blockalign ) {
390 encoded_len -= IMA_ADPCM_state.wavefmt.blockalign;
412 WaveFMT *format = NULL;
454 format = (WaveFMT *)chunk.data;