Displaying 1 result from an estimated 1 matches for "iszerodata".
Did you mean:
m_iszerodata
2005 Apr 26
2
100% CPU usage
...> the reason is probably just the fact that the packet
> loss concealment
> hasn't been completely converted to fixed-point.
I am using intel x86 CPU.
The high CPU utilization go away after I put the
following code protection code:
// when no packet arrived do the following...
if(!m_IsZeroData)
{
speex_decode_int(decoder_state, NULL, shortData);
//check if shortData[] array is zero bytes.
m_IsZeroData = IsZeroData(shortData);
}
m_IsZeroData will be set to false when new voice
packet arrive.
It seems to me that speex_decode_int() can not be
execute too many times after shortData[] bec...