search for: periodmicrosec

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

2014 Jun 24
1
Speex Decoding Issue
...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> microseconds pstAudioDriverInterface->configure_output_timer(perio...