From e164760eb0a7f98e7614368f7a5c85eea30e80eb Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 13 Nov 2018 19:15:12 +0400 Subject: [PATCH] Use AL_DIRECT_CHANNELS_SOFT for audio playback. See https://github.com/telegramdesktop/tdesktop/issues/2580. (cherry picked from commit e3b6e1325e0d8dff9c428f293d468c7c2a1c3329) --- Telegram/SourceFiles/media/media_audio.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Telegram/SourceFiles/media/media_audio.cpp b/Telegram/SourceFiles/media/media_audio.cpp index 5620c169e..e6df4e65f 100644 --- a/Telegram/SourceFiles/media/media_audio.cpp +++ b/Telegram/SourceFiles/media/media_audio.cpp @@ -287,6 +287,7 @@ void Mixer::Track::createStream() { alSource3f(stream.source, AL_POSITION, 0, 0, 0); alSource3f(stream.source, AL_VELOCITY, 0, 0, 0); alSourcei(stream.source, AL_LOOPING, 0); + alSourcei(stream.source, AL_DIRECT_CHANNELS_SOFT, 1); alGenBuffers(3, stream.buffers); }