Skip to content

Commit

Permalink
Don't use alcGetEnumValue for non-ALC enum value
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ilya-fedin authored and john-preston committed Jan 26, 2023
1 parent 2be4641 commit 5d20d58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Telegram/SourceFiles/media/audio/media_audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ void Mixer::Track::createStream(AudioMsgId::Type type) {
alSourcei(
stream.source,
alGetEnumValue("AL_DIRECT_CHANNELS_SOFT"),
alcGetEnumValue(nullptr, "AL_REMIX_UNMATCHED_SOFT"));
alGetEnumValue("AL_REMIX_UNMATCHED_SOFT"));
}
alGenBuffers(3, stream.buffers);
if (speedEffect) {
Expand Down
2 changes: 1 addition & 1 deletion Telegram/lib_webrtc

0 comments on commit 5d20d58

Please sign in to comment.