From 8f3473eedecb855bb3f7396f70bef0b34e4bcf19 Mon Sep 17 00:00:00 2001 From: f4exb Date: Wed, 16 Aug 2017 12:42:07 +0200 Subject: [PATCH] UDPSink buffer: implemented R/W pointer skew auto compensation optimization (2) --- plugins/channeltx/udpsink/udpsinkudphandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/channeltx/udpsink/udpsinkudphandler.cpp b/plugins/channeltx/udpsink/udpsinkudphandler.cpp index b47f2076b..216d58725 100644 --- a/plugins/channeltx/udpsink/udpsinkudphandler.cpp +++ b/plugins/channeltx/udpsink/udpsinkudphandler.cpp @@ -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);