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 /audio/out/ao_coreaudio_chmap.h | |
parent | 7ab1080749b02e3e545166e67528c6a039e04969 (diff) | |
download | mpv-1ed8607292ae4f9eafd041d304ad68740ffd3fd7.tar.bz2 mpv-1ed8607292ae4f9eafd041d304ad68740ffd3fd7.tar.xz |
ao_avfoundation: initial avfoundation ao support
Diffstat (limited to 'audio/out/ao_coreaudio_chmap.h')
-rw-r--r-- | audio/out/ao_coreaudio_chmap.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/audio/out/ao_coreaudio_chmap.h b/audio/out/ao_coreaudio_chmap.h index b6d160c546..0b21e8330c 100644 --- a/audio/out/ao_coreaudio_chmap.h +++ b/audio/out/ao_coreaudio_chmap.h @@ -18,15 +18,22 @@ #ifndef MPV_COREAUDIO_CHMAP_H #define MPV_COREAUDIO_CHMAP_H +#include "config.h" #include <AudioToolbox/AudioToolbox.h> -#include "config.h" +#if HAVE_AVFOUNDATION || HAVE_AUDIOUNIT +#undef HAVE_COREAUDIO +#define HAVE_COREAUDIO 1 +#endif struct mp_chmap; int ca_label_to_mp_speaker_id(AudioChannelLabel label); +AudioChannelLabel mp_speaker_id_to_ca_label(int speaker_id); #if HAVE_COREAUDIO +AudioChannelLayout *ca_find_standard_layout(void *talloc_ctx, AudioChannelLayout *l); +void ca_log_layout(struct ao *ao, int l, AudioChannelLayout *layout); bool ca_init_chmap(struct ao *ao, AudioDeviceID device); void ca_get_active_chmap(struct ao *ao, AudioDeviceID device, int channel_count, struct mp_chmap *out_map); |