2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Use audio device enumeration from lib_webrtc.

This commit is contained in:
John Preston
2020-08-18 11:23:45 +04:00
parent f36240eb38
commit e782e065a0
8 changed files with 34 additions and 28 deletions

View File

@@ -176,13 +176,17 @@ public:
_autoLock = value;
}
[[nodiscard]] QString callOutputDeviceID() const {
return _callOutputDeviceID;
return _callOutputDeviceID.isEmpty()
? u"default"_q
: _callOutputDeviceID;
}
void setCallOutputDeviceID(const QString &value) {
_callOutputDeviceID = value;
}
[[nodiscard]] QString callInputDeviceID() const {
return _callInputDeviceID;
return _callInputDeviceID.isEmpty()
? u"default"_q
: _callInputDeviceID;
}
void setCallInputDeviceID(const QString &value) {
_callInputDeviceID = value;