1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 13:47:01 -04:00

Remote input: limit m_readLengthSamples range

This commit is contained in:
f4exb
2019-04-30 08:43:55 +02:00
parent 9a39d0d898
commit f9107b78b2
3 changed files with 12 additions and 7 deletions
@@ -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 / 100; // +/- 10 ms correction max per read
m_balCorrLimit = sampleRate / 400; // +/- 5% correction max per read
m_readNbBytes = (sampleRate * metaData->m_sampleBytes * 2) / 20;
}