Displaying 1 result from an estimated 1 matches for "m_ndecodeframesize".
2010 Jun 10
0
speex multi frame
...SPEEX_SET_DTX, &nEhc);
speex_encoder_ctl(m_pSpeexEncStateOut, SPEEX_GET_FRAME_SIZE,
&m_nEncodeFrameSize);
//
speex_bits_init(&m_speexBitsIn);
m_pSpeexDecStateIn= speex_decoder_init(&speex_nb_mode);
speex_decoder_ctl(m_pSpeexDecStateIn, SPEEX_GET_FRAME_SIZE,
&m_nDecodeFrameSize);
}
int CSpeexCodec::Decode(const char* pcIndata, int nIndataSize,
CShortCollection& dataOut)
{
//
speex_bits_read_from( &m_speexBitsIn, (char*)pcIndata, nIndataSize);
static std::vector<float> floatDataOut;
int nFrame = 0;
size_t nbBytes = speex_bits_remaining(&...