Displaying 1 result from an estimated 1 matches for "nindatasize".
Did you mean:
indatasize
2010 Jun 10
0
speex multi frame
...ET_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(&m_speexBitsIn);
while(nbBytes > 0 )
{
if( (nFrame+1...