[Speex-dev] Continous decoding of several audio files without
giganti71 at gmail.com
Fri Dec 21 17:18:45 PST 2007
We are using speex decoder only for narrow band decoding.
Quite often, even though source frame is not silence, decoded audio is
I wonder there is a problem in the way we uses speex decoder API.
Basically, we initialize speex decoder only once and just reset the decoder
before we decoding another file.
Do we need to intialize speex decoder and destory decoder for each audio
file decoding ?
Here is current pseudo code.
m_speex = speex_decoder_init(speex_nb_mode);
speex_decoder_ctl(m_speex, SPEEX_SET_ENH, &tmp);
while(end of files)
speex_decoder_ctl(m_speex, SPEEX_RESET_STATE, &tmp);
OpenFile(speex audio file);
while(end of file)
CloseFile(speex audio file);
Thanks in advance for your help.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Speex-dev