mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-04 16:01:14 -05:00
UDPSink buffer: implemented R/W pointer skew auto compensation optimization (2)
This commit is contained in:
parent
1fa29a3174
commit
8f3473eede
@ -148,7 +148,7 @@ void UDPSinkUDPHandler::advanceReadPointer(int nbBytes)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
float dd = d - m_d; // derivative
|
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
|
c = c < -0.05 ? -0.05 : c > 0.05 ? 0.05 : c; // limit
|
||||||
UDPSinkMessages::MsgSampleRateCorrection *msg = UDPSinkMessages::MsgSampleRateCorrection::create(c);
|
UDPSinkMessages::MsgSampleRateCorrection *msg = UDPSinkMessages::MsgSampleRateCorrection::create(c);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user