| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
#pragma once |
| 5 |
|
| 6 |
#include <array> |
| 7 |
|
| 8 |
#include <QWidget> |
| 9 |
|
| 10 |
namespace AudioCommon |
| 11 |
{ |
| 12 |
enum class DPL2Quality; |
| 13 |
} |
| 14 |
|
| 15 |
class ConfigBool; |
| 16 |
class ConfigChoice; |
| 17 |
class ConfigComplexChoice; |
| 18 |
class ConfigRadioBool; |
| 19 |
class ConfigSlider; |
| 20 |
class ConfigStringChoice; |
| 21 |
class QGroupBox; |
| 22 |
class QHBoxLayout; |
| 23 |
class QLabel; |
| 24 |
class QRadioButton; |
| 25 |
class SettingsWindow; |
| 26 |
class ConfigBool; |
| 27 |
|
| 28 |
class AudioPane final : public QWidget |
| 29 |
{ |
| 30 |
Q_OBJECT |
| 31 |
public: |
| 32 |
explicit AudioPane(); |
| 33 |
|
| 34 |
private: |
| 35 |
void CreateWidgets(); |
| 36 |
void ConnectWidgets(); |
| 37 |
void AddDescriptions(); |
| 38 |
|
| 39 |
void OnEmulationStateChanged(bool running); |
| 40 |
void OnBackendChanged(); |
| 41 |
void OnDspChanged(); |
| 42 |
|
| 43 |
void UpdateWiimoteRoutingEnabled(); |
| 44 |
|
| 45 |
void CheckNeedForLatencyControl(); |
| 46 |
bool m_latency_control_supported; |
| 47 |
|
| 48 |
QHBoxLayout* m_main_layout; |
| 49 |
|
| 50 |
|
| 51 |
ConfigComplexChoice* m_dsp_combo; |
| 52 |
|
| 53 |
|
| 54 |
ConfigSlider* m_volume_slider; |
| 55 |
QLabel* m_volume_indicator; |
| 56 |
|
| 57 |
|
| 58 |
QLabel* m_backend_label; |
| 59 |
ConfigStringChoice* m_backend_combo; |
| 60 |
|
| 61 |
ConfigBool* m_dolby_pro_logic; |
| 62 |
QLabel* m_dolby_quality_label; |
| 63 |
ConfigChoice* m_dolby_quality_combo; |
| 64 |
|
| 65 |
QLabel* m_latency_label; |
| 66 |
ConfigSlider* m_latency_slider; |
| 67 |
#ifdef _WIN32 |
| 68 |
QLabel* m_wasapi_device_label; |
| 69 |
ConfigStringChoice* m_wasapi_device_combo; |
| 70 |
#endif |
| 71 |
|
| 72 |
|
| 73 |
ConfigBool* m_audio_fill_gaps; |
| 74 |
ConfigBool* m_audio_preserve_pitch; |
| 75 |
ConfigBool* m_speed_up_mute_enable; |
| 76 |
|
| 77 |
|
| 78 |
QGroupBox* m_wiimote_routing_box = nullptr; |
| 79 |
ConfigBool* m_wiimote_routing_enable = nullptr; |
| 80 |
std::array<ConfigBool*, 4> m_wiimote_output_enable{}; |
| 81 |
std::array<ConfigStringChoice*, 4> m_wiimote_output_device{}; |
| 82 |
}; |