From e1728a96742cb70a0683af82fe95304433b232e0 Mon Sep 17 00:00:00 2001 From: Bill Somerville Date: Thu, 11 Jun 2015 00:30:02 +0000 Subject: [PATCH] Changed Tx Pwr attenator range to 45dB This is now half way between the recent change to 30dB when the formula was corrected to voltage attenuation from power and prior to that. Also corrected formula for the SoundOutput::attenuation property to use the correct voltage attenuation calculation. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5579 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.ui | 2 +- soundout.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mainwindow.ui b/mainwindow.ui index 712b685e4..4e9ebc03c 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -1257,7 +1257,7 @@ Adjust Tx audio level - 300 + 450 0 diff --git a/soundout.cpp b/soundout.cpp index c0ac8ed61..d79929525 100644 --- a/soundout.cpp +++ b/soundout.cpp @@ -140,7 +140,7 @@ void SoundOutput::stop () qreal SoundOutput::attenuation () const { - return -(10. * qLn (m_volume) / qLn (10.)); + return -(20. * qLn (m_volume) / qLn (10.)); } void SoundOutput::setAttenuation (qreal a)