search for: m_pospeexdecompressst

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

2006 Sep 15
2
Constant noise in the background in realtime data
...--------------------------------------- int OALCapture::Decompress(ALchar* pDecomData, int iFrameSize, char* cComFrame) { // Set the decompress bits speex_bits_read_from(&m_oDecompressBits, cComFrame, iFrameSize); // Decode the bits into an output float array speex_decode(m_poSpeexDecompressState, &m_oDecompressBits, output); // Get the number of samples returned by the decoder int nSamplesDecoded = 0; speex_decoder_ctl(m_poSpeexDecompressState, SPEEX_GET_FRAME_SIZE, &nSamplesDecoded); //nSamplesDecoded /= 2; // Now we have to convert the floats back into our AL...
2006 Sep 08
2
problem with compression and decompression
...ALchar* pDecomData, int iFrameSize, char* cComFrame) { speex_bits_init(&m_oDecompressBits); int i; ///*Copy the data into the bit-stream struct*/ speex_bits_read_from(&m_oDecompressBits, cComFrame, iFrameSize); /*Decode the data*/ speex_decode(m_poSpeexDecompressState, &m_oDecompressBits, output); /*Copy from float to short (16 bits) for output*/ for (i = 0; i < BUFFERSIZE; i++) out[i] = output[i]; strcpy(pDecomData, out); } main.cpp while (!_kbhit() ) { if ( g_oCapture.CaptureSamples(g_ArrBuffer, (...