From e357125929e6fbc8e1d52092cf37e75379f0437f Mon Sep 17 00:00:00 2001 From: Doug McLain Date: Sat, 15 Jan 2022 15:40:47 -0500 Subject: [PATCH] Set default mic gain values to better (lower) values for most devices and make level meter more responsive during tx --- MainTab.qml | 5 ++++- android/AndroidManifest.xml | 2 +- codec.h | 1 - dcscodec.cpp | 2 +- dmrcodec.cpp | 2 +- droidstar.cpp | 14 +++++++++----- droidstar.h | 4 ++-- iaxcodec.h | 1 - m17codec.cpp | 2 +- main.qml | 10 +++++----- nxdncodec.cpp | 2 +- p25codec.cpp | 2 +- refcodec.cpp | 2 +- xrfcodec.cpp | 2 +- ysfcodec.cpp | 2 +- 15 files changed, 29 insertions(+), 24 deletions(-) diff --git a/MainTab.qml b/MainTab.qml index 8eb5cbd..88edadc 100644 --- a/MainTab.qml +++ b/MainTab.qml @@ -431,12 +431,13 @@ Item { y: (parent.height / rows + 1) * 3; width: parent.width / 4; height: parent.height / rows; - text: qsTr("Mic gain") + text: qsTr("TX") color: "white" font.pixelSize: parent.height / 30; verticalAlignment: Text.AlignVCenter } Slider { + property double v; visible: true id: _slidermicGain x: (parent.width / 4) + 10 @@ -445,7 +446,9 @@ Item { height: parent.height / rows; value: 0.5 onValueChanged: { + v = value * 100; droidstar.set_input_volume(value); + micgain_label.text = "TX " + v.toFixed(1); } } Text { diff --git a/android/AndroidManifest.xml b/android/AndroidManifest.xml index 0cd234b..01077ab 100644 --- a/android/AndroidManifest.xml +++ b/android/AndroidManifest.xml @@ -1,5 +1,5 @@ - +