Skip to content

Commit

Permalink
ao/audiounit: fix building for iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
23doors authored and Akemi committed Apr 19, 2024
1 parent e855836 commit 578b9da
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion audio/out/ao_coreaudio_chmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "config.h"
#include <AudioToolbox/AudioToolbox.h>

#if HAVE_AVFOUNDATION || HAVE_AUDIOUNIT
#if HAVE_AVFOUNDATION
#undef HAVE_COREAUDIO
#define HAVE_COREAUDIO 1
#endif
Expand Down
2 changes: 1 addition & 1 deletion audio/out/ao_coreaudio_properties.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

#include "internal.h"

#if HAVE_AVFOUNDATION || HAVE_AUDIOUNIT
#if HAVE_AVFOUNDATION
#undef HAVE_COREAUDIO
#define HAVE_COREAUDIO 1
#endif
Expand Down
2 changes: 1 addition & 1 deletion audio/out/ao_coreaudio_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "internal.h"
#include "osdep/utils-mac.h"

#if HAVE_AVFOUNDATION || HAVE_AUDIOUNIT
#if HAVE_AVFOUNDATION
#undef HAVE_COREAUDIO
#define HAVE_COREAUDIO 1
#endif
Expand Down
7 changes: 5 additions & 2 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -819,8 +819,11 @@ endif

if features['audiounit'] or features['coreaudio'] or features['avfoundation']
sources += files('audio/out/ao_coreaudio_chmap.c',
'audio/out/ao_coreaudio_utils.c',
'audio/out/ao_coreaudio_properties.c')
'audio/out/ao_coreaudio_utils.c')
endif

if features['avfoundation']
sources += files('audio/out/ao_coreaudio_properties.c')
endif

jack_opt = get_option('jack').require(
Expand Down

0 comments on commit 578b9da

Please sign in to comment.