Displaying 1 result from an estimated 1 matches for "tmpbuffersize".
Did you mean:
sspbuffersize
2007 Nov 14
0
Audio glitches/Configuration problem !!?
...fferSize, inBuffer, inSize);
m_BufferSize += inSize;
// check if we have enougth data for the encoder,
if(m_BufferSize < m_FrameSizeInBytes )
return false;
// start processing
short* input = (short*)m_pBuffer;
char* output = outBuffer;
*outSize = 0;
int tmpBufferSize = m_BufferSize;
while(tmpBufferSize >= m_FrameSizeInBytes + m_SpeexLookAheadInBytes)
{
speex_bits_reset(&m_SpeexBits);
if(m_Channels == 2)
speex_encode_stereo_int(input, m_FrameSizeInSamples,
&m_SpeexBits);
if (m_SpeexPreprocessState != NULL...