search for: m_obits

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

2006 Sep 15
2
Constant noise in the background in realtime data
...he 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 nBuffSize = BUFFERSIZE / 2; // Now copy the samples into the float array t...
2006 Sep 08
2
problem with compression and decompression
...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) input[i] = pData[i]; /*Encode the...