summaryrefslogtreecommitdiffstats
path: root/audio/out/ao_coreaudio_properties.h
diff options
context:
space:
mode:
authorStefano Pigozzi <stefano.pigozzi@gmail.com>2014-07-03 19:05:22 +0200
committerStefano Pigozzi <stefano.pigozzi@gmail.com>2014-07-03 20:05:15 +0200
commit97f6d7f4ec255f126d76fb6d3bc0d60f0e23f7b6 (patch)
tree49c0a74286b990a823bb30ed9f937809757c69be /audio/out/ao_coreaudio_properties.h
parent29b047da6fd504329117c680cd8fd4ff53f587c8 (diff)
downloadmpv-97f6d7f4ec255f126d76fb6d3bc0d60f0e23f7b6.tar.bz2
mpv-97f6d7f4ec255f126d76fb6d3bc0d60f0e23f7b6.tar.xz
ao_coreaudio: report hardware latency to ao_read_data
Commit a6a4cd2c88 added reporting of playout latency, this commit also adds support for reporting hardware and constant audio unit latency.
Diffstat (limited to 'audio/out/ao_coreaudio_properties.h')
-rw-r--r--audio/out/ao_coreaudio_properties.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/audio/out/ao_coreaudio_properties.h b/audio/out/ao_coreaudio_properties.h
index e48b75871e..8a41944746 100644
--- a/audio/out/ao_coreaudio_properties.h
+++ b/audio/out/ao_coreaudio_properties.h
@@ -37,6 +37,7 @@ OSStatus ca_set(AudioObjectID id, ca_scope scope, ca_sel selector,
#define CA_GET(id, sel, data) ca_get(id, CA_GLOBAL, sel, sizeof(*(data)), data)
#define CA_SET(id, sel, data) ca_set(id, CA_GLOBAL, sel, sizeof(*(data)), data)
+#define CA_GET_O(id, sel, data) ca_get(id, CA_OUTPUT, sel, sizeof(*(data)), data)
OSStatus ca_get_ary(AudioObjectID id, ca_scope scope, ca_sel selector,
uint32_t element_size, void **data, size_t *elements);