mirror of https://github.com/procxx/kepka.git
Use AL_DIRECT_CHANNELS_SOFT for audio playback.
See https://github.com/telegramdesktop/tdesktop/issues/2580.
(cherry picked from commit e3b6e1325e
)
This commit is contained in:
parent
b2ee90263d
commit
e164760eb0
|
@ -287,6 +287,7 @@ void Mixer::Track::createStream() {
|
||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue