From 5d20d585b3eaf4bea3883375380ee8c5092dc402 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Wed, 25 Jan 2023 13:28:40 +0400 Subject: [PATCH] Don't use alcGetEnumValue for non-ALC enum value This makes no effective change for openal-soft as alGetEnumValue and alcGetEnumValue do lookup in the same table, but it's more semantically right and openal-soft is not the only implementation of the API --- Telegram/SourceFiles/media/audio/media_audio.cpp | 2 +- Telegram/lib_webrtc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/media/audio/media_audio.cpp b/Telegram/SourceFiles/media/audio/media_audio.cpp index f32ffdb933..3fc726416b 100644 --- a/Telegram/SourceFiles/media/audio/media_audio.cpp +++ b/Telegram/SourceFiles/media/audio/media_audio.cpp @@ -345,7 +345,7 @@ void Mixer::Track::createStream(AudioMsgId::Type type) { alSourcei( stream.source, alGetEnumValue("AL_DIRECT_CHANNELS_SOFT"), - alcGetEnumValue(nullptr, "AL_REMIX_UNMATCHED_SOFT")); + alGetEnumValue("AL_REMIX_UNMATCHED_SOFT")); } alGenBuffers(3, stream.buffers); if (speedEffect) { diff --git a/Telegram/lib_webrtc b/Telegram/lib_webrtc index 0a1290dd95..853b9d8cbe 160000 --- a/Telegram/lib_webrtc +++ b/Telegram/lib_webrtc @@ -1 +1 @@ -Subproject commit 0a1290dd95ad750b242344a7bcb8c927da36550b +Subproject commit 853b9d8cbe02460f405ce1d13beb3a5be46a007f