From 3f5b41dfa30ca282fd99176bf879493dd72b3119 Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Wed, 19 Oct 2016 15:08:48 -0700 Subject: audio/out: add AudioUnit output driver for iOS --- audio/out/ao_coreaudio_chmap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'audio/out/ao_coreaudio_chmap.c') diff --git a/audio/out/ao_coreaudio_chmap.c b/audio/out/ao_coreaudio_chmap.c index 3db2bdf3d5..13ac87e2ba 100644 --- a/audio/out/ao_coreaudio_chmap.c +++ b/audio/out/ao_coreaudio_chmap.c @@ -56,7 +56,7 @@ static const int speaker_map[][2] = { { 0, -1 }, }; -static int ca_label_to_mp_speaker_id(AudioChannelLabel label) +int ca_label_to_mp_speaker_id(AudioChannelLabel label) { for (int i = 0; speaker_map[i][1] >= 0; i++) if (speaker_map[i][0] == label) @@ -64,6 +64,7 @@ static int ca_label_to_mp_speaker_id(AudioChannelLabel label) return -1; } +#if HAVE_COREAUDIO static void ca_log_layout(struct ao *ao, int l, AudioChannelLayout *layout) { if (!mp_msg_test(ao->log, l)) @@ -327,3 +328,4 @@ void ca_get_active_chmap(struct ao *ao, AudioDeviceID device, int channel_count, MP_WARN(ao, "mismatching channels - falling back to %s\n", mp_chmap_to_str(out_map)); } +#endif -- cgit v1.2.3