Commit acd7c91c authored by Anne Heimes's avatar Anne Heimes

server kalkuliere mögliche freie samples (overrun gefahr) -> TODO target latency setzten

parent f4c7c40d
......@@ -217,6 +217,16 @@ bool CITANetAudioStreamingServer::LoopBody( )
oLog.dWorldTimeStamp = ITAClock::getDefaultClock( )->getTime( );
m_pServerLogger->log( oLog );
}
else
{
/*
// Neue Sample bei ca 1ms (0,9ms) warten
float dSamples = 0.0011 * m_pInputStream->GetSampleRate();
int iSamples = ( int ) dSamples;
int offset = iSamples % m_pInputStream->GetBlocklength( );
m_iClientRingBufferFreeSamples += iSamples - offset;
*/
}
return false;
......
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