[Speex-dev] The speex encoding function can't normally work with the "SPEEX_SET_PLC_TUNING" Codec Option being set on?
hdq1115 at sohu.com
Wed Sep 16 03:05:22 PDT 2009
The speex encoding function can't work with the "SPEEX_SET_PLC_TUNING" Codec Option being set on?
Below is a command line of the encoding Initialization function in my program：
bool speexEncode::Init(int quality,int bandmode,int &framesize)
...........// other command lines
this->m_EncState = speex_encoder_init(&speex_nb_mode);
int tmp =30 ; // set on the Packet Loss Compensation
speex_encoder_ctl(this->m_EncState, SPEEX_SET_PLC_TUNING, &tmp);
where m_EncState is a Speex Encoder state.
While I didn't set the Codec Options Codec Option, the speex encode function "int ret= speex_encode_int(this->m_EncState,this->psClean,&m_bits)" return a value that's bigger than zero. While the Codec Options Codec Option was set on, 'int ret= speex_encode_int(this->m_EncState,this->psClean,&m_bits)" always return zero,I was puzzled.Who can tell me why ? Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Speex-dev