SigMFFileInput: fixed acceleration. For #1699

pull/1711/head
f4exb 2023-06-03 03:57:11 +02:00
rodzic 5500ba4d17
commit fce03a6494
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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