Skip to content

Commit

Permalink
Use AL_DIRECT_CHANNELS_SOFT for audio playback.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston authored and kiku-jw committed Feb 11, 2019
1 parent ac9c3ca commit 49aee92
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 @@ -330,6 +330,7 @@ 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);
alGenBuffers(3, stream.buffers);
if (type == AudioMsgId::Type::Voice) {
mixer()->updatePlaybackSpeed(this);
Expand Down

0 comments on commit 49aee92

Please sign in to comment.