From 5bb1c7719902191d43627f532f4f8a9777765d44 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sun, 12 Apr 2020 05:10:59 +0400 Subject: [PATCH] Use OpenAL without direct channels --- Telegram/SourceFiles/media/audio/media_audio.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/media/audio/media_audio.cpp b/Telegram/SourceFiles/media/audio/media_audio.cpp index 2ff60a1be..9356bfc78 100644 --- a/Telegram/SourceFiles/media/audio/media_audio.cpp +++ b/Telegram/SourceFiles/media/audio/media_audio.cpp @@ -314,7 +314,8 @@ void Mixer::Track::createStream(AudioMsgId::Type type) { 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); + alSourcei(stream.source, AL_SOURCE_RELATIVE, 1); + alSourcei(stream.source, AL_ROLLOFF_FACTOR, 0); alGenBuffers(3, stream.buffers); #ifndef TDESKTOP_DISABLE_OPENAL_EFFECTS if (speedEffect) {