1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 22:14:45 -04:00

File Source plugin: fixed reading chunk size not always a multiple of 4 (I/Q sample size) and display of decimal values of sample rate in kS/s

This commit is contained in:
f4exb
2016-10-07 18:16:17 +02:00
parent f008250ffa
commit 1b086348e6
2 changed files with 2 additions and 3 deletions
@@ -150,7 +150,7 @@ void FileSourceThread::tick()
if (throttlems != m_throttlems)
{
m_throttlems = throttlems;
m_chunksize = (m_samplerate * 4 * (m_throttlems+(m_throttleToggle ? 1 : 0))) / 1000;
m_chunksize = 4 * ((m_samplerate * (m_throttlems+(m_throttleToggle ? 1 : 0))) / 1000);
m_throttleToggle = !m_throttleToggle;
setBuffer(m_chunksize);
}