From 2a8ee97c0148d64e944dabec5c8f93eff1ece7b5 Mon Sep 17 00:00:00 2001 From: f4exb Date: Mon, 29 Apr 2019 00:25:26 +0200 Subject: [PATCH] Remote input: R/W balance: increased correction limit to the equivalent of +/- 10ms per read (~20%) --- plugins/samplesource/remoteinput/remoteinputbuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/samplesource/remoteinput/remoteinputbuffer.cpp b/plugins/samplesource/remoteinput/remoteinputbuffer.cpp index 2a349932c..4358914e4 100644 --- a/plugins/samplesource/remoteinput/remoteinputbuffer.cpp +++ b/plugins/samplesource/remoteinput/remoteinputbuffer.cpp @@ -318,7 +318,7 @@ void RemoteInputBuffer::writeData(char *array) if (sampleRate != 0) { m_bufferLenSec = (float) m_framesNbBytes / (float) (sampleRate * metaData->m_sampleBytes * 2); - m_balCorrLimit = sampleRate / 1000; // +/- 1 ms correction max per read + m_balCorrLimit = sampleRate / 100; // +/- 10 ms correction max per read m_readNbBytes = (sampleRate * metaData->m_sampleBytes * 2) / 20; }