1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-26 17:12:36 +00:00

ao/audiounit: fix building for iOS

This commit is contained in:
Robert Kopaczewski 2024-04-18 18:52:16 +02:00 committed by der richter
parent e855836ed1
commit 578b9dade2
4 changed files with 8 additions and 5 deletions

View File

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

View File

@ -23,7 +23,7 @@
#include "internal.h"
#if HAVE_AVFOUNDATION || HAVE_AUDIOUNIT
#if HAVE_AVFOUNDATION
#undef HAVE_COREAUDIO
#define HAVE_COREAUDIO 1
#endif

View File

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

View File

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