1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 01:39:05 -05:00

Fixed roundf in audio dialog

This commit is contained in:
f4exb 2018-03-30 19:41:41 +02:00
parent 7e37d91a49
commit c1f350c7e3

View File

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