Browse Source

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

chirpmodem-v8.0.0
f4exb 9 years ago
parent
commit
8f3473eede
  1. 2
      plugins/channeltx/udpsink/udpsinkudphandler.cpp

2
plugins/channeltx/udpsink/udpsinkudphandler.cpp

@ -148,7 +148,7 @@ void UDPSinkUDPHandler::advanceReadPointer(int nbBytes) @@ -148,7 +148,7 @@ void UDPSinkUDPHandler::advanceReadPointer(int nbBytes)
else
{
float dd = d - m_d; // derivative
float c = (d / 10.0) + (dd / 20.0); // damping and scaling
float c = (d / 15.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);

Loading…
Cancel
Save