1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00
sdrangel/sdrgui/gui/audiodialog.h

58 lines
1.6 KiB
C
Raw Normal View History

#ifndef INCLUDE_AUDIODIALOG_H
#define INCLUDE_AUDIODIALOG_H
#include <QDialog>
#include "export.h"
#include "audio/audiodevicemanager.h"
2018-03-03 14:23:38 -05:00
class QTreeWidgetItem;
namespace Ui {
class AudioDialog;
}
class SDRGUI_API AudioDialogX : public QDialog {
Q_OBJECT
public:
explicit AudioDialogX(AudioDeviceManager* audioDeviceManager, QWidget* parent = 0);
~AudioDialogX();
int m_inIndex;
int m_outIndex;
private:
void updateInputDisplay();
void updateOutputDisplay();
void updateInputDeviceInfo();
void updateOutputDeviceInfo();
void updateOutputSDPString();
Ui::AudioDialog* ui;
AudioDeviceManager* m_audioDeviceManager;
AudioDeviceManager::InputDeviceInfo m_inputDeviceInfo;
AudioDeviceManager::OutputDeviceInfo m_outputDeviceInfo;
quint16 m_outputUDPPort;
private slots:
void accept();
void reject();
2019-02-17 00:15:12 -05:00
void check();
void on_audioInTree_currentItemChanged(QTreeWidgetItem* currentItem, QTreeWidgetItem* previousItem);
void on_audioOutTree_currentItemChanged(QTreeWidgetItem* currentItem, QTreeWidgetItem* previousItem);
void on_inputVolume_valueChanged(int value);
void on_inputReset_clicked(bool checked);
void on_inputCleanup_clicked(bool checked);
void on_outputUDPPort_editingFinished();
void on_outputReset_clicked(bool checked);
void on_outputCleanup_clicked(bool checked);
void on_outputSampleRate_valueChanged(int value);
void on_decimationFactor_currentIndexChanged(int index);
void on_outputUDPChannelCodec_currentIndexChanged(int index);
void on_outputUDPChannelMode_currentIndexChanged(int index);
};
#endif // INCLUDE_AUDIODIALOG_H