Fixed roundf in audio dialog

pull/162/head
f4exb 2018-03-30 19:41:41 +02:00
rodzic 7e37d91a49
commit c1f350c7e3
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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