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:
Ilya Fedin 2021-11-20 21:56:38 +04:00 committed by John Preston
parent f69d0823a9
commit 4e63346877
2 changed files with 5 additions and 2 deletions

View File

@ -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