Skip to content

Commit

Permalink
SimplePTT: fixed list of audio devices for VOX displaying output inst…
Browse files Browse the repository at this point in the history
…ead of input devices
  • Loading branch information
f4exb committed Aug 13, 2022
1 parent 6af0618 commit 66707b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/feature/simpleptt/simplepttgui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion plugins/feature/simpleptt/simplepttgui.ui
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
7 changes: 6 additions & 1 deletion sdrgui/gui/audioselectdialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 66707b1

Please sign in to comment.