6 #ifndef SWIFT_GUI_COMPONENTS_AUDIODEVICEVOLUMESETUPCOMPONENT_H
7 #define SWIFT_GUI_COMPONENTS_AUDIODEVICEVOLUMESETUPCOMPONENT_H
12 #include <QScopedPointer>
24 class CAudioDeviceVolumeSetupComponent;
26 namespace swift::core::afv::clients
70 void setInLevel(
double value);
71 void setOutLevel(
double value);
75 void setInfo(
const QString &info);
82 void initWithAfvClient();
85 void reloadSettings();
89 void onAudioDeviceSelected(
int index);
96 void onAudioStopped();
102 void onLoopbackToggled(
bool loopback);
105 void onDisableAudioEffectsToggled(
bool disabled);
108 void initAudioDeviceLists();
111 bool hasAudio()
const;
114 bool hasSimulator()
const;
117 void onVolumeSliderChanged(
int v);
122 void onOutputVU(
double vu);
123 void onInputVU(
double vu);
125 void onReloadDevices();
126 void onResetVolumeIn();
127 void onResetVolumeOut();
128 void onResetVolumeOutCom1();
129 void onResetVolumeOutCom2();
131 void setAudioRunsWhere();
133 bool isComIntegrated()
const;
135 void onRxTxChanged(
bool checked);
136 void setRxTxCheckboxes(
bool rx1,
bool tx1,
bool rx2,
bool tx2);
141 void onUpdatedClientWithCockpitData();
148 void setTransmitReceiveInUi(
bool tx1,
bool rec1,
bool tx2,
bool rec2,
bool integrated);
149 void setTransmitReceiveInUiFromVoiceClient();
153 void setCheckBoxesReadOnly(
bool readonly);
156 void setVolumeSlidersReadOnly(
bool readonly);
163 QScopedPointer<Ui::CAudioDeviceVolumeSetupComponent> ui;
166 std::chrono::milliseconds(1000), 10 };
168 this, &CAudioDeviceVolumeSetupComponent::reloadSettings
172 void simulatorSettingsChanged();
Audio setup such as input / output devices.
List of QMetaObject::Connection.
Receive 1..n signals, collect them over time, and resend afer n milliseconds.
Value object encapsulating information of a audio device.
Value object encapsulating a list of audio devices.
static constexpr int OutMin
Ranges for audio.
static constexpr int OutMax
Ranges for audio.
static constexpr int InMin
Ranges for audio.
static constexpr int InMax
Ranges for audio.
Value object for a set of callsigns.
High level reusable GUI components.
#define SWIFT_GUI_EXPORT
Export a class or function from the library.