UDPSink buffer: implemented R/W pointer skew auto compensation optimization

pull/60/head
f4exb 2017-08-16 12:28:48 +02:00
rodzic 60b502ce7e
commit 1fa29a3174
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -148,7 +148,7 @@ void UDPSinkUDPHandler::advanceReadPointer(int nbBytes)
else
{
float dd = d - m_d; // derivative
float c = (d + dd) / 10.0; // (d / 10.0) + (dd / 10.0); // damping and scaling
float c = (d / 10.0) + (dd / 20.0); // damping and scaling
c = c < -0.05 ? -0.05 : c > 0.05 ? 0.05 : c; // limit
UDPSinkMessages::MsgSampleRateCorrection *msg = UDPSinkMessages::MsgSampleRateCorrection::create(c);