diff options
author | Misaki Kasumi <misakikasumi@outlook.com> | 2024-03-17 04:14:47 +0800 |
---|---|---|
committer | der richter <der.richter@gmx.de> | 2024-03-29 13:46:59 +0100 |
commit | 1ed8607292ae4f9eafd041d304ad68740ffd3fd7 (patch) | |
tree | 3d62798116b3bd358ee5b9ff6d2733a45f0cd132 /meson.build | |
parent | 7ab1080749b02e3e545166e67528c6a039e04969 (diff) | |
download | mpv-1ed8607292ae4f9eafd041d304ad68740ffd3fd7.tar.bz2 mpv-1ed8607292ae4f9eafd041d304ad68740ffd3fd7.tar.xz |
ao_avfoundation: initial avfoundation ao support
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 7822a413c2..0715254c65 100644 --- a/meson.build +++ b/meson.build @@ -799,6 +799,14 @@ if features['audiounit'] sources += files('audio/out/ao_audiounit.m') endif +avfoundation = dependency('appleframeworks', modules: ['CoreMedia', 'AVFoundation'], + required: get_option('avfoundation')) +features += {'avfoundation': avfoundation.found()} +if features['avfoundation'] + dependencies += avfoundation + sources += files('audio/out/ao_avfoundation.m') +endif + coreaudio = dependency('appleframeworks', modules: ['CoreFoundation', 'CoreAudio', 'AudioUnit', 'AudioToolbox'], required: get_option('coreaudio')) features += {'coreaudio': coreaudio.found()} @@ -809,9 +817,10 @@ if features['coreaudio'] 'audio/out/ao_coreaudio_properties.c') endif -if features['audiounit'] or features['coreaudio'] +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_utils.c', + 'audio/out/ao_coreaudio_properties.c') endif jack_opt = get_option('jack').require( |