summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_coreaudio_utils.h
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2014-05-01 18:36:52 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2014-05-10 14:07:45 +0200
commitb46ffaec7cf105e37263d1e32b396c3455e64f06 (patch)
treee7aeb24e4795721fb83a47f24850e5db9001ae44 /audio/out/ao_coreaudio_utils.h
parente2f26f01fed17a156653994702a270e01732eb65 (diff)
downloadmpv-b46ffaec7cf105e37263d1e32b396c3455e64f06.tar.bz2
mpv-b46ffaec7cf105e37263d1e32b396c3455e64f06.tar.xz
ao_coreaudio: use description-based channel layouts
CoreAudio supports 3 kinds of layouts: bitmap based, tag based, and speaker description based (using either channel labels or positional data). Previously we tried to convert everything to bitmap based channel layouts, but it turns out description based ones are the most generic and there are built-in CoreAudio APIs to perform the conversion in this direction. Moreover description based layouts support waveext extensions (like SDL and SDR), and are easier to map to mp_chmaps.
Diffstat (limited to 'audio/out/ao_coreaudio_utils.h')
-rw-r--r--audio/out/ao_coreaudio_utils.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/audio/out/ao_coreaudio_utils.h b/audio/out/ao_coreaudio_utils.h
index 0aca2f7c62..9218ccf00d 100644
--- a/audio/out/ao_coreaudio_utils.h
+++ b/audio/out/ao_coreaudio_utils.h
@@ -77,8 +77,7 @@ OSStatus ca_disable_device_listener(AudioDeviceID device, void *flag);
bool ca_change_format(struct ao *ao, AudioStreamID stream,
AudioStreamBasicDescription change_format);
-void ca_bitmaps_from_layouts(struct ao *ao,
- AudioChannelLayout *layouts, size_t n_layouts,
- uint32_t **bitmaps, size_t *n_bitmaps);
+bool ca_layout_to_mp_chmap(struct ao *ao, AudioChannelLayout *layout,
+ struct mp_chmap *chmap);
#endif /* MPV_COREAUDIO_UTILS_H */