search for: ccomframe

Displaying 2 results from an estimated 2 matches for "ccomframe".

2006 Sep 15
2
Constant noise in the background in realtime data
...noise keeps running in the background whether I talk or not. Here are the two main encoding/decoding function I am using //------------------------------------------------------------------------------------------ void OALCapture::Compress(ALchar* pData, int *iFrameSize, char* cComFrame) { // Reset speex bits before frame encode speex_bits_reset(&m_oBits); int nFrameSize = 0; speex_encoder_ctl(m_poSpeexCompressState, SPEEX_GET_FRAME_SIZE, &nFrameSize); // Our samples are 2 bytes each so number of samples is actually // have the buffer size int nBuff...
2006 Sep 08
2
problem with compression and decompression
...the decompressed voice data. iFrameSize is the integer which provides the actual number of bytes written to the compressed frame. cComeFrame is the character array which provides the compressed voice data as input for this function. void OALCapture::Compress(ALchar* pData, int *iFrameSize, char* cComFrame) { speex_bits_init(&m_oBits); int i; /*Flush all the bits in the struct so we can encode a new frame*/ speex_bits_reset(&m_oBits); /* Copy the data from ALchar array to a float array */ for(i = 0; i < BUFFERSIZE; ++i) in...