mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-23 18:52:28 -04:00
SigMFFileInput: fixed acceleration. For #1699
This commit is contained in:
parent
5500ba4d17
commit
fce03a6494
@ -194,7 +194,7 @@ void SigMFFileInputWorker::tick()
|
|||||||
if (throttlems != m_throttlems)
|
if (throttlems != m_throttlems)
|
||||||
{
|
{
|
||||||
m_throttlems = 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;
|
m_throttleToggle = !m_throttleToggle;
|
||||||
setBuffers(m_chunksize);
|
setBuffers(m_chunksize);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user