mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-22 08:04:49 -05:00
58 lines
1.6 KiB
C++
58 lines
1.6 KiB
C++
#ifndef INCLUDE_AUDIODIALOG_H
|
|
#define INCLUDE_AUDIODIALOG_H
|
|
|
|
#include <QDialog>
|
|
|
|
#include "export.h"
|
|
#include "audio/audiodevicemanager.h"
|
|
|
|
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();
|
|
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
|