Remote input: R/W balance: increased correction limit to the equivalent of +/- 10ms per read (~20%)

This commit is contained in:
f4exb 2019-04-29 00:25:26 +02:00
parent d0779be1d2
commit 2a8ee97c01
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}