Commit b4e97789 authored by Anne's avatar Anne
Browse files

bugfuix RingBufferFull

parent f794c92d
......@@ -17,6 +17,7 @@ CITANetAudioStream::CITANetAudioStream( int iChannels, double dSamplingRate, int
, m_iStreamingStatus( INVALID )
{
m_bRingBufferFull = false;
if( iBufferSize > iRingBufferCapacity )
ITA_EXCEPT1( INVALID_PARAMETER, "Ring buffer capacity can not be smaller than buffer size." );
......@@ -115,9 +116,8 @@ int CITANetAudioStream::Transmit( const ITASampleFrame& sfNewSamples, int iNumSa
if( iCurrentWriteCursor < iCurrentReadCursor )
iCurrentWriteCursor += GetRingBufferSize(); // Unwrap, because write cursor always ahead
if ( m_iWriteCursor == m_iReadCursor )
if ( ( m_iWriteCursor == m_iReadCursor ) && m_bRingBufferFull )
{
m_bRingBufferFull = true;
outputFile << " BuffFull: ";
}
else if( GetRingBufferFreeSamples() < iNumSamples )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment