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

pull/1391/head
f4exb 2022-08-13 11:14:31 +02:00
rodzic 6af0618240
commit 66707b19bc
3 zmienionych plików z 8 dodań i 3 usunięć

Wyświetl plik

@ -482,7 +482,7 @@ void SimplePTTGUI::applyPTT(bool tx)
void SimplePTTGUI::audioSelect() void SimplePTTGUI::audioSelect()
{ {
qDebug("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(); audioSelect.exec();
if (audioSelect.m_selected) if (audioSelect.m_selected)

Wyświetl plik

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

Wyświetl plik

@ -33,7 +33,12 @@ namespace Ui {
class SDRGUI_API AudioSelectDialog : public QDialog { class SDRGUI_API AudioSelectDialog : public QDialog {
Q_OBJECT Q_OBJECT
public: 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(); ~AudioSelectDialog();
QString m_audioDeviceName; QString m_audioDeviceName;