1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-02 06:04:39 -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
@@ -311,8 +311,7 @@ void FileSourceGui::updateWithAcquisition()
void FileSourceGui::updateWithStreamData()
{
ui->centerFrequency->setValue(m_centerFrequency/1000);
QString s = QString::number(m_sampleRate/1000.0, 'f', 0);
ui->sampleRateText->setText(tr("%1k").arg(s));
ui->sampleRateText->setText(tr("%1k").arg((float)m_sampleRate / 1000));
ui->play->setEnabled(m_acquisition);
QTime recordLength(0, 0, 0, 0);
recordLength = recordLength.addSecs(m_recordLength);