Browse Source

audiotraits: fix compile warning on macOS

rdb 2 months ago
parent
commit
bd76aba87c
1 changed files with 1 additions and 2 deletions
  1. 1 2
      panda/src/audiotraits/openalAudioManager.cxx

+ 1 - 2
panda/src/audiotraits/openalAudioManager.cxx

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