summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2013-09-11 12:33:30 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-09-11 12:33:30 -0700
commit063c87f2b96d6a2914dc57f7e7b9b4541de71dbc (patch)
tree9e9103422d98068d415cf80a171802cf157bc01b
parent8473b3056da8d2ac85c1790feb7e6675a7148bcd (diff)
parent22b42bc528c1a38176572c128323e945ea4a7d0a (diff)
downloadlibhardware-063c87f2b96d6a2914dc57f7e7b9b4541de71dbc.tar.gz
am 22b42bc5: Merge "Clarify return values of get_presentation_position" into klp-dev
* commit '22b42bc528c1a38176572c128323e945ea4a7d0a': Clarify return values of get_presentation_position
-rw-r--r--include/hardware/audio.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/hardware/audio.h b/include/hardware/audio.h
index f8419807..6ba2544e 100644
--- a/include/hardware/audio.h
+++ b/include/hardware/audio.h
@@ -358,10 +358,18 @@ struct audio_stream_out {
int (*flush)(struct audio_stream_out* stream);
/**
- * Return the number of audio frames presented to an external observer.
+ * Return a recent count of the number of audio frames presented to an external observer.
* This excludes frames which have been written but are still in the pipeline.
* The count is not reset to zero when output enters standby.
* Also returns the value of CLOCK_MONOTONIC as of this presentation count.
+ * The returned count is expected to be 'recent',
+ * but does not need to be the most recent possible value.
+ * However, the associated time should correspond to whatever count is returned.
+ * Example: assume that N+M frames have been presented, where M is a 'small' number.
+ * Then it is permissible to return N instead of N+M,
+ * and the timestamp should correspond to N rather than N+M.
+ * The terms 'recent' and 'small' are not defined.
+ * They reflect the quality of the implementation.
*
* 3.0 and higher only.
*/