search for: oalcapture

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

2006 Sep 15
2
Constant noise in the background in realtime data
...round. I do hear my voice with a decreased quality but the 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...
2006 Sep 08
2
problem with compression and decompression
...()", pDecomData is the ALchar pointer which will store 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 */...