1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00

SimplePTT: fixed list of audio devices for VOX displaying output instead of input devices

This commit is contained in:
f4exb 2022-08-13 11:14:31 +02:00
parent 6af0618240
commit 66707b19bc
3 changed files with 8 additions and 3 deletions

View File

@ -482,7 +482,7 @@ void SimplePTTGUI::applyPTT(bool tx)
void SimplePTTGUI::audioSelect()
{
qDebug("SimplePTTGUI::audioSelect");
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName);
AudioSelectDialog audioSelect(DSPEngine::instance()->getAudioDeviceManager(), m_settings.m_audioDeviceName, true);
audioSelect.exec();
if (audioSelect.m_selected)

View File

@ -240,7 +240,7 @@
<item>
<widget class="QSpinBox" name="voxHold">
<property name="toolTip">
<string>Vox delay (ms)</string>
<string>Vox hold (ms)</string>
</property>
<property name="minimum">
<number>500</number>

View File

@ -33,7 +33,12 @@ namespace Ui {
class SDRGUI_API AudioSelectDialog : public QDialog {
Q_OBJECT
public:
explicit AudioSelectDialog(const AudioDeviceManager* audioDeviceManager, const QString& deviceName, bool input = false, QWidget* parent = 0);
explicit AudioSelectDialog(
const AudioDeviceManager* audioDeviceManager,
const QString& deviceName,
bool input = false,
QWidget* parent = nullptr
);
~AudioSelectDialog();
QString m_audioDeviceName;