diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-07-10 19:24:28 +0200 |
---|---|---|
committer | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2013-07-22 21:53:18 +0200 |
commit | c11c744998a28d582ec9d6139f2bf6c927000e3a (patch) | |
tree | a4b7b2c13ded46defa6ff21e605f2e9f8ddd4b00 /audio/out/ao_coreaudio_utils.h | |
parent | 18777ecfe894ec9c7995a69e0786e56f45bc73f8 (diff) | |
download | mpv-c11c744998a28d582ec9d6139f2bf6c927000e3a.tar.bz2 mpv-c11c744998a28d582ec9d6139f2bf6c927000e3a.tar.xz |
ao_coreaudio: refactor chmap detection
b2f9e0610 introduced this functionality with code that was quite 'monolithic'.
Split the functionality over several functions and ose the new macros to get
array properties.
Diffstat (limited to 'audio/out/ao_coreaudio_utils.h')
-rw-r--r-- | audio/out/ao_coreaudio_utils.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/audio/out/ao_coreaudio_utils.h b/audio/out/ao_coreaudio_utils.h index b7f261088b..78e524fbd8 100644 --- a/audio/out/ao_coreaudio_utils.h +++ b/audio/out/ao_coreaudio_utils.h @@ -70,8 +70,9 @@ OSStatus ca_disable_device_listener(AudioDeviceID device, void *flag); bool ca_change_format(AudioStreamID stream, AudioStreamBasicDescription change_format); -bool ca_bitmap_from_ch_descriptions(AudioChannelLayout layout, - uint32_t *bitmap); -bool ca_bitmap_from_ch_tag(AudioChannelLayout layout, uint32_t *bitmap); +bool ca_bitmap_from_ch_desc(AudioChannelLayout *layout, uint32_t *bitmap); +bool ca_bitmap_from_ch_tag(AudioChannelLayout *layout, uint32_t *bitmap); +void ca_bitmaps_from_layouts(AudioChannelLayout *layouts, size_t n_layouts, + uint32_t **bitmaps, size_t *n_bitmaps); #endif /* MPV_COREAUDIO_UTILS_H */ |