From b23e4fa4910ddeca8274dc0718ff6fb032c3adcd Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 5 Jan 2021 19:02:48 +0400 Subject: [PATCH] Use OpenAL recording backend for calls on Windows. --- Telegram/SourceFiles/calls/calls_call.cpp | 2 ++ Telegram/SourceFiles/calls/calls_group_call.cpp | 2 ++ Telegram/ThirdParty/libtgvoip | 2 +- Telegram/ThirdParty/tgcalls | 2 +- Telegram/lib_webrtc | 2 +- 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/calls/calls_call.cpp b/Telegram/SourceFiles/calls/calls_call.cpp index 80712f3b92..f4ed5818f0 100644 --- a/Telegram/SourceFiles/calls/calls_call.cpp +++ b/Telegram/SourceFiles/calls/calls_call.cpp @@ -25,6 +25,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "calls/calls_panel.h" #include "webrtc/webrtc_video_track.h" #include "webrtc/webrtc_media_devices.h" +#include "webrtc/webrtc_create_adm.h" #include "data/data_user.h" #include "data/data_session.h" #include "facades.h" @@ -779,6 +780,7 @@ void Call::createAndStartController(const MTPDphoneCall &call) { sendSignalingData(bytes); }); }, + .createAudioDeviceModule = Webrtc::AudioDeviceModuleCreator(), }; if (Logs::DebugEnabled()) { auto callLogFolder = cWorkingDir() + qsl("DebugLogs"); diff --git a/Telegram/SourceFiles/calls/calls_group_call.cpp b/Telegram/SourceFiles/calls/calls_group_call.cpp index 2a68b411e5..ee8b3e609e 100644 --- a/Telegram/SourceFiles/calls/calls_group_call.cpp +++ b/Telegram/SourceFiles/calls/calls_group_call.cpp @@ -25,6 +25,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "data/data_session.h" #include "base/global_shortcuts.h" #include "webrtc/webrtc_media_devices.h" +#include "webrtc/webrtc_create_adm.h" #include @@ -581,6 +582,7 @@ void GroupCall::createAndStartController() { }, .initialInputDeviceId = _audioInputId.toStdString(), .initialOutputDeviceId = _audioOutputId.toStdString(), + .createAudioDeviceModule = Webrtc::AudioDeviceModuleCreator(), }; if (Logs::DebugEnabled()) { auto callLogFolder = cWorkingDir() + qsl("DebugLogs"); diff --git a/Telegram/ThirdParty/libtgvoip b/Telegram/ThirdParty/libtgvoip index 37d98e984f..13a5fcb16b 160000 --- a/Telegram/ThirdParty/libtgvoip +++ b/Telegram/ThirdParty/libtgvoip @@ -1 +1 @@ -Subproject commit 37d98e984fd6fa389262307db826d52ab86c8241 +Subproject commit 13a5fcb16b04472d808ce122abd695dbf5d206cd diff --git a/Telegram/ThirdParty/tgcalls b/Telegram/ThirdParty/tgcalls index 6e8b3f7e5f..bac020b468 160000 --- a/Telegram/ThirdParty/tgcalls +++ b/Telegram/ThirdParty/tgcalls @@ -1 +1 @@ -Subproject commit 6e8b3f7e5f14321cb9e77f18c0a82089bf7f31c6 +Subproject commit bac020b468d51a014843081ab89a291a74a2a64b diff --git a/Telegram/lib_webrtc b/Telegram/lib_webrtc index d9e8307af6..bada95202a 160000 --- a/Telegram/lib_webrtc +++ b/Telegram/lib_webrtc @@ -1 +1 @@ -Subproject commit d9e8307af6aa30e9b5e1e5376035641cfd063b7b +Subproject commit bada95202ae45a650d76d9572b20fc9cb03365ad