diff options
author | Aman Gupta <aman@tmm1.net> | 2016-10-19 15:08:48 -0700 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-11-01 16:25:40 +0100 |
commit | 3f5b41dfa30ca282fd99176bf879493dd72b3119 (patch) | |
tree | b6684cc9b2406f3bc26e0b9e43950cc97fb030f9 /audio/out/ao_coreaudio_chmap.c | |
parent | 0dc1fe32696f9b53f21da598efe1aa1e3be2f24e (diff) | |
download | mpv-3f5b41dfa30ca282fd99176bf879493dd72b3119.tar.bz2 mpv-3f5b41dfa30ca282fd99176bf879493dd72b3119.tar.xz |
audio/out: add AudioUnit output driver for iOS
Diffstat (limited to 'audio/out/ao_coreaudio_chmap.c')
-rw-r--r-- | audio/out/ao_coreaudio_chmap.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 |