mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Don't use alcGetEnumValue for non-ALC enum value
This makes no effective change for openal-soft as alGetEnumValue and alcGetEnumValue do lookup in the same table, but it's more semantically right and openal-soft is not the only implementation of the API
This commit is contained in:
parent
2be4641496
commit
5d20d585b3
2 changed files with 2 additions and 2 deletions
|
@ -345,7 +345,7 @@ void Mixer::Track::createStream(AudioMsgId::Type type) {
|
||||||
alSourcei(
|
alSourcei(
|
||||||
stream.source,
|
stream.source,
|
||||||
alGetEnumValue("AL_DIRECT_CHANNELS_SOFT"),
|
alGetEnumValue("AL_DIRECT_CHANNELS_SOFT"),
|
||||||
alcGetEnumValue(nullptr, "AL_REMIX_UNMATCHED_SOFT"));
|
alGetEnumValue("AL_REMIX_UNMATCHED_SOFT"));
|
||||||
}
|
}
|
||||||
alGenBuffers(3, stream.buffers);
|
alGenBuffers(3, stream.buffers);
|
||||||
if (speedEffect) {
|
if (speedEffect) {
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 0a1290dd95ad750b242344a7bcb8c927da36550b
|
Subproject commit 853b9d8cbe02460f405ce1d13beb3a5be46a007f
|
Loading…
Add table
Reference in a new issue