mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02: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
2 changed files with 5 additions and 2 deletions
|
@ -331,7 +331,10 @@ void Mixer::Track::createStream(AudioMsgId::Type type) {
|
||||||
alSourcei(stream.source, AL_SOURCE_RELATIVE, 1);
|
alSourcei(stream.source, AL_SOURCE_RELATIVE, 1);
|
||||||
alSourcei(stream.source, AL_ROLLOFF_FACTOR, 0);
|
alSourcei(stream.source, AL_ROLLOFF_FACTOR, 0);
|
||||||
if (alIsExtensionPresent("AL_SOFT_direct_channels_remix")) {
|
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);
|
alGenBuffers(3, stream.buffers);
|
||||||
if (speedEffect) {
|
if (speedEffect) {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 07f1f72e45a75edb6304ba06c5e90fc287a1f0cb
|
Subproject commit 04cc1ff4a6fdade551e26441488ac0d0a208e96c
|
Loading…
Add table
Reference in a new issue