From 578b9dade26b985e858e0f98f508abf241827539 Mon Sep 17 00:00:00 2001 From: Robert Kopaczewski Date: Thu, 18 Apr 2024 18:52:16 +0200 Subject: [PATCH] ao/audiounit: fix building for iOS --- audio/out/ao_coreaudio_chmap.h | 2 +- audio/out/ao_coreaudio_properties.h | 2 +- audio/out/ao_coreaudio_utils.h | 2 +- meson.build | 7 +++++-- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/audio/out/ao_coreaudio_chmap.h b/audio/out/ao_coreaudio_chmap.h index 0b21e8330c..8dd9ab7001 100644 --- a/audio/out/ao_coreaudio_chmap.h +++ b/audio/out/ao_coreaudio_chmap.h @@ -21,7 +21,7 @@ #include "config.h" #include -#if HAVE_AVFOUNDATION || HAVE_AUDIOUNIT +#if HAVE_AVFOUNDATION #undef HAVE_COREAUDIO #define HAVE_COREAUDIO 1 #endif diff --git a/audio/out/ao_coreaudio_properties.h b/audio/out/ao_coreaudio_properties.h index 2c9c5657bb..07c12400c5 100644 --- a/audio/out/ao_coreaudio_properties.h +++ b/audio/out/ao_coreaudio_properties.h @@ -23,7 +23,7 @@ #include "internal.h" -#if HAVE_AVFOUNDATION || HAVE_AUDIOUNIT +#if HAVE_AVFOUNDATION #undef HAVE_COREAUDIO #define HAVE_COREAUDIO 1 #endif diff --git a/audio/out/ao_coreaudio_utils.h b/audio/out/ao_coreaudio_utils.h index 699ffde9a7..c199bb70a8 100644 --- a/audio/out/ao_coreaudio_utils.h +++ b/audio/out/ao_coreaudio_utils.h @@ -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 diff --git a/meson.build b/meson.build index a61046254a..117ebeb7b8 100644 --- a/meson.build +++ b/meson.build @@ -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(