diff --git a/mainwindow.cpp b/mainwindow.cpp index fba7153d1..7d583f10e 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1771,7 +1771,7 @@ void MainWindow::on_EraseButton_clicked() //Erase { qint64 ms=QDateTime::currentMSecsSinceEpoch(); ui->decodedTextBrowser2->clear(); - if(m_mode.mid(0,4)=="WSPR") { + if(m_mode.mid(0,4)=="WSPR" or m_mode=="Echo") { ui->decodedTextBrowser->clear(); } else { m_QSOText.clear(); diff --git a/soundout.cpp b/soundout.cpp index 9e5843e91..c0ac8ed61 100644 --- a/soundout.cpp +++ b/soundout.cpp @@ -146,7 +146,7 @@ qreal SoundOutput::attenuation () const void SoundOutput::setAttenuation (qreal a) { Q_ASSERT (0. <= a && a <= 999.); - m_volume = qPow (10., -a / 10.); + m_volume = qPow(10.0, -a/20.0); // qDebug () << "SoundOut: attn = " << a << ", vol = " << m_volume; if (m_stream) {