mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Use AL_DIRECT_CHANNELS_SOFT for audio playback.
See https://github.com/telegramdesktop/tdesktop/issues/2580.
This commit is contained in:
parent
9101d64b20
commit
e3b6e1325e
1 changed files with 1 additions and 0 deletions
|
@ -330,6 +330,7 @@ void Mixer::Track::createStream(AudioMsgId::Type type) {
|
||||||
alSource3f(stream.source, AL_POSITION, 0, 0, 0);
|
alSource3f(stream.source, AL_POSITION, 0, 0, 0);
|
||||||
alSource3f(stream.source, AL_VELOCITY, 0, 0, 0);
|
alSource3f(stream.source, AL_VELOCITY, 0, 0, 0);
|
||||||
alSourcei(stream.source, AL_LOOPING, 0);
|
alSourcei(stream.source, AL_LOOPING, 0);
|
||||||
|
alSourcei(stream.source, AL_DIRECT_CHANNELS_SOFT, 1);
|
||||||
alGenBuffers(3, stream.buffers);
|
alGenBuffers(3, stream.buffers);
|
||||||
if (type == AudioMsgId::Type::Voice) {
|
if (type == AudioMsgId::Type::Voice) {
|
||||||
mixer()->updatePlaybackSpeed(this);
|
mixer()->updatePlaybackSpeed(this);
|
||||||
|
|
Loading…
Add table
Reference in a new issue