mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-22 08:16:56 +00:00
Use AL_REMIX_UNMATCHED_SOFT enum value instead of hard-coded value
This makes the feature require version 1.21.0, previously was 1.20.1
This commit is contained in:
parent
f69d0823a9
commit
4e63346877
@ -331,7 +331,10 @@ void Mixer::Track::createStream(AudioMsgId::Type type) {
|
||||
alSourcei(stream.source, AL_SOURCE_RELATIVE, 1);
|
||||
alSourcei(stream.source, AL_ROLLOFF_FACTOR, 0);
|
||||
if (alIsExtensionPresent("AL_SOFT_direct_channels_remix")) {
|
||||
alSourcei(stream.source, alGetEnumValue("AL_DIRECT_CHANNELS_SOFT"), 2);
|
||||
alSourcei(
|
||||
stream.source,
|
||||
alGetEnumValue("AL_DIRECT_CHANNELS_SOFT"),
|
||||
alcGetEnumValue(nullptr, "AL_REMIX_UNMATCHED_SOFT"));
|
||||
}
|
||||
alGenBuffers(3, stream.buffers);
|
||||
if (speedEffect) {
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 07f1f72e45a75edb6304ba06c5e90fc287a1f0cb
|
||||
Subproject commit 04cc1ff4a6fdade551e26441488ac0d0a208e96c
|
Loading…
Reference in New Issue
Block a user