search for: nsamplesdecoded

Displaying 1 result from an estimated 1 matches for "nsamplesdecoded".

2006 Sep 15
2
Constant noise in the background in realtime data
...) { // 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 sample format // which takes 2 bytes integer value for each sample short* pALBuffer = (short*) pDecomData; for(...