search for: pstaudiobuff

Displaying 1 result from an estimated 1 matches for "pstaudiobuff".

Did you mean: pstaudiobuffer
2014 Jun 24
1
Speex Decoding Issue
...er. Here I paste the function which handles this task: SpeexBits bits; void *dec_state; int idx = 0; // 160 decoded "samples" short output_frame[SPEEX_NB_FRAME_SIZE]; // Getting the timer period from the Sample Rate of the original WAV file float periodSec = 1.0f / (float) pstAudioBuffer->u.spx->dwSampleRate; unsigned int periodMicroSec = (unsigned int) (periodSec * 1000000.0f); // Initialization speex_bits_init(&bits); dec_state = speex_decoder_init(&speex_nb_mode); // Configures the output timer to generate IRQs every <periodMicroSec> microsecond...