audiotraits: fix compile warning on macOS

This commit is contained in:
rdb 2025-10-19 14:18:17 +02:00
parent e83150f382
commit bd76aba87c
1 changed files with 1 additions and 2 deletions

View File

@ -156,11 +156,10 @@ OpenALAudioManager() {
// We managed to get a device open.
alcGetError(_device); // clear errors
ALCboolean is_hrtf_present = alcIsExtensionPresent(_device, "ALC_SOFT_HRTF");
ALCint attrs[3] = {0};
#ifndef HAVE_OPENAL_FRAMEWORK
ALCboolean is_hrtf_present = alcIsExtensionPresent(_device, "ALC_SOFT_HRTF");
if (is_hrtf_present) {
attrs[0] = ALC_HRTF_SOFT;
attrs[1] = audio_want_hrtf.get_value() ? ALC_TRUE : ALC_FALSE;