From c1f350c7e34ce7f789b7935c34cbdcd32ddeaff0 Mon Sep 17 00:00:00 2001 From: f4exb Date: Fri, 30 Mar 2018 19:41:41 +0200 Subject: [PATCH] Fixed roundf in audio dialog --- sdrgui/gui/audiodialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdrgui/gui/audiodialog.cpp b/sdrgui/gui/audiodialog.cpp index 781ac4201..b96072ace 100644 --- a/sdrgui/gui/audiodialog.cpp +++ b/sdrgui/gui/audiodialog.cpp @@ -172,7 +172,7 @@ void AudioDialogX::on_inputCleanup_clicked(bool checked __attribute__((unused))) void AudioDialogX::updateInputDisplay() { ui->inputSampleRate->setValue(m_inputDeviceInfo.sampleRate); - ui->inputVolume->setValue(roundf(m_inputDeviceInfo.volume * 100.0f)); + ui->inputVolume->setValue(round(m_inputDeviceInfo.volume * 100.0f)); ui->inputVolumeText->setText(QString("%1").arg(m_inputDeviceInfo.volume, 0, 'f', 2)); }