search for: floatdataout

Displaying 1 result from an estimated 1 matches for "floatdataout".

2010 Jun 10
0
speex multi frame
...oder_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) * m_nDecodeFrameSize > (int)floatDataOut.size( ) ) { if( !floatDataOut.size( ) ) floatDataOut.resize(m_nDecodeFrameSize );...