| 
									
										
										
										
											2016-05-04 17:07:26 +02:00
										 |  |  | #ifndef INCLUDE_AUDIODIALOG_H
 | 
					
						
							|  |  |  | #define INCLUDE_AUDIODIALOG_H
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #include <QDialog>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-20 13:49:21 +01:00
										 |  |  | #include "export.h"
 | 
					
						
							| 
									
										
										
										
											2018-03-26 11:55:45 +02:00
										 |  |  | #include "audio/audiodevicemanager.h"
 | 
					
						
							| 
									
										
										
										
											2018-03-03 20:23:38 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-26 11:55:45 +02:00
										 |  |  | class QTreeWidgetItem; | 
					
						
							| 
									
										
										
										
											2016-05-04 17:07:26 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | namespace Ui { | 
					
						
							|  |  |  | 	class AudioDialog; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-25 13:36:09 +02:00
										 |  |  | class SDRGUI_API AudioDialogX : public QDialog { | 
					
						
							| 
									
										
										
										
											2016-05-04 17:07:26 +02:00
										 |  |  | 	Q_OBJECT | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | public: | 
					
						
							| 
									
										
										
										
											2018-03-25 13:36:09 +02:00
										 |  |  | 	explicit AudioDialogX(AudioDeviceManager* audioDeviceManager, QWidget* parent = 0); | 
					
						
							|  |  |  | 	~AudioDialogX(); | 
					
						
							| 
									
										
										
										
											2016-05-04 17:07:26 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-26 11:55:45 +02:00
										 |  |  | 	int m_inIndex; | 
					
						
							|  |  |  | 	int m_outIndex; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-04 17:07:26 +02:00
										 |  |  | private: | 
					
						
							| 
									
										
										
										
											2018-03-26 11:55:45 +02:00
										 |  |  | 	void updateInputDisplay(); | 
					
						
							|  |  |  | 	void updateOutputDisplay(); | 
					
						
							|  |  |  | 	void updateInputDeviceInfo(); | 
					
						
							|  |  |  | 	void updateOutputDeviceInfo(); | 
					
						
							| 
									
										
										
										
											2019-02-14 08:31:18 +01:00
										 |  |  | 	void updateOutputSDPString(); | 
					
						
							| 
									
										
										
										
											2018-03-26 11:55:45 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-04 17:07:26 +02:00
										 |  |  | 	Ui::AudioDialog* ui; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-24 03:36:49 +01:00
										 |  |  | 	AudioDeviceManager* m_audioDeviceManager; | 
					
						
							| 
									
										
										
										
											2018-03-26 11:55:45 +02:00
										 |  |  | 	AudioDeviceManager::InputDeviceInfo m_inputDeviceInfo; | 
					
						
							|  |  |  | 	AudioDeviceManager::OutputDeviceInfo m_outputDeviceInfo; | 
					
						
							|  |  |  | 	quint16 m_outputUDPPort; | 
					
						
							| 
									
										
										
										
											2016-05-04 17:07:26 +02:00
										 |  |  | 
 | 
					
						
							|  |  |  | private slots: | 
					
						
							|  |  |  | 	void accept(); | 
					
						
							| 
									
										
										
										
											2018-03-26 11:55:45 +02:00
										 |  |  | 	void reject(); | 
					
						
							| 
									
										
										
										
											2019-02-17 06:15:12 +01:00
										 |  |  | 	void check(); | 
					
						
							| 
									
										
										
										
											2018-03-26 11:55:45 +02:00
										 |  |  |     void on_audioInTree_currentItemChanged(QTreeWidgetItem* currentItem, QTreeWidgetItem* previousItem); | 
					
						
							|  |  |  | 	void on_audioOutTree_currentItemChanged(QTreeWidgetItem* currentItem, QTreeWidgetItem* previousItem); | 
					
						
							| 
									
										
										
										
											2017-01-06 03:13:53 +01:00
										 |  |  | 	void on_inputVolume_valueChanged(int value); | 
					
						
							| 
									
										
										
										
											2018-03-26 11:55:45 +02:00
										 |  |  |     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); | 
					
						
							| 
									
										
										
										
											2019-02-14 08:31:18 +01:00
										 |  |  |     void on_outputSampleRate_valueChanged(int value); | 
					
						
							|  |  |  |     void on_decimationFactor_currentIndexChanged(int index); | 
					
						
							|  |  |  |     void on_outputUDPChannelCodec_currentIndexChanged(int index); | 
					
						
							|  |  |  |     void on_outputUDPChannelMode_currentIndexChanged(int index); | 
					
						
							| 
									
										
										
										
											2022-11-08 22:55:40 +01:00
										 |  |  | 	void on_record_toggled(bool checked); | 
					
						
							|  |  |  |     void on_showFileDialog_clicked(bool checked); | 
					
						
							|  |  |  |     void on_recordSilenceTime_valueChanged(int value); | 
					
						
							| 
									
										
										
										
											2016-05-04 17:07:26 +02:00
										 |  |  | }; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #endif // INCLUDE_AUDIODIALOG_H
 |