1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 01:55:48 -05:00

SigMFFileInput: fixed acceleration. For #1699

This commit is contained in:
f4exb 2023-06-03 03:57:11 +02:00
parent 5500ba4d17
commit fce03a6494

View File

@ -194,7 +194,7 @@ void SigMFFileInputWorker::tick()
if (throttlems != m_throttlems)
{
m_throttlems = throttlems;
m_chunksize = 2 * m_samplebytes * ((m_samplerate * (m_throttlems+(m_throttleToggle ? 1 : 0))) / 1000);
m_chunksize = 2 * m_samplebytes * ((m_samplerate * m_accelerationFactor * (m_throttlems+(m_throttleToggle ? 1 : 0))) / 1000);
m_throttleToggle = !m_throttleToggle;
setBuffers(m_chunksize);
}