Skip to content

Commit

Permalink
Use AL_DIRECT_CHANNELS_SOFT for audio playback.
Browse files Browse the repository at this point in the history
See telegramdesktop/tdesktop#2580.

(cherry picked from commit e3b6e13)
  • Loading branch information
john-preston authored and leha-bot committed May 24, 2019
1 parent b2ee902 commit e164760
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Telegram/SourceFiles/media/media_audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit e164760

Please sign in to comment.