File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -133,13 +133,12 @@ endif()
133133
134134if (WANT_AQUEUE AND MACOSX)
135135 # Should check the presence just to be sure.
136- find_library (AUDIO_TOOLBOX_LIB NAMES AudioToolbox)
137- if (AUDIO_TOOLBOX_LIB)
138- find_path (AQUEUE_INCLUDE_DIR AudioToolbox/AudioQueue.h)
139- if (AQUEUE_INCLUDE_DIR)
140- set (SUPPORT_AQUEUE 1)
141- endif (AQUEUE_INCLUDE_DIR)
142- endif (AUDIO_TOOLBOX_LIB)
136+ find_library (AUDIO_TOOLBOX_LIB AudioToolbox)
137+ find_path (AQUEUE_INCLUDE_DIR AudioToolbox/AudioQueue.h)
138+ find_library (CORE_AUDIO_LIB CoreAudio)
139+ if (AUDIO_TOOLBOX_LIB AND AQUEUE_INCLUDE_DIR AND CORE_AUDIO_LIB)
140+ set (SUPPORT_AQUEUE 1)
141+ endif ()
143142
144143 if (NOT SUPPORT_AQUEUE)
145144 message ("WARNING: could not find AudioQueue. (This is normal on OS X 10.4)" )
@@ -150,6 +149,7 @@ if(SUPPORT_AQUEUE)
150149 set (ALLEGRO_CFG_KCM_AQUEUE 1)
151150 list (APPEND AUDIO_SOURCES aqueue.m)
152151 list (APPEND AUDIO_LIBRARIES ${AUDIO_TOOLBOX_LIB} )
152+ list (APPEND AUDIO_LIBRARIES ${CORE_AUDIO_LIB} )
153153 set (SUPPORT_AUDIO 1)
154154endif (SUPPORT_AQUEUE)
155155
You can’t perform that action at this time.
0 commit comments