Displaying 2 results from an estimated 2 matches for "pdecomdata".
2006 Sep 15
2
Constant noise in the background in realtime data
...// Set the number of bytes of encoded message
*iFrameSize = nbBytes;
// Copy encoded bytes into return array
memcpy(cComFrame, cbits, nbBytes);
}
//------------------------------------------------------------------------------------------
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 sampl...
2006 Sep 08
2
problem with compression and decompression
...ot;, pData is the ALchar pointer which
contains the data. iFrameSize is the integer which will store the number of
bytes actually written to the compressed frame. cComeFrame is the character
array which eventually stores the compressed voice data.
As for the arguments for "Decompress()", 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...