search for: periodsec

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

Did you mean: periodic
2014 Jun 24
1
Speex Decoding Issue
...microcontroller DA converter. 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 <...