Fixed and improved audio device selection.

This commit is contained in:
2017-02-15 22:22:32 +01:00
parent ec04bbcc2d
commit 8da0ab734e
5 changed files with 96 additions and 14 deletions
+3 -6
View File
@@ -36,14 +36,10 @@ namespace advsettings {
int m_playbackDeviceIndex = -1;
int m_mirrorDeviceIndex = -1;
//bool m_mirrorPresent = false;
//QString m_mirrorDevName = "<None>";
float m_mirrorVolume = 1.0;
bool m_mirrorMuted = false;
int m_recordingDeviceIndex = -1;
//bool m_micPresent = false;
//QString m_micDevName = "<None>";
float m_micVolume = 1.0;
bool m_micMuted = false;
@@ -91,8 +87,7 @@ namespace advsettings {
void onNewRecordingDevice();
void onNewPlaybackDevice();
void onNewMirrorDevice();
void onDeviceAdded();
void onDeviceRemoved();
void onDeviceStateChanged();
public slots:
void setMirrorVolume(float value, bool notify = true);
@@ -116,6 +111,8 @@ namespace advsettings {
void micVolumeChanged(float value);
void micMutedChanged(bool value);
void playbackDeviceListChanged();
void recordingDeviceListChanged();
};
} // namespace advsettings