am 5dae225d: Merge "get_presentation_position" into klp-dev

* commit '5dae225de7b5ccf965d1496bc4343828a250f788':
  get_presentation_position
This commit is contained in:
Glenn Kasten 2013-08-29 17:08:09 -07:00 committed by Android Git Automerger
commit 1c06c82f19

View file

@ -356,6 +356,18 @@ struct audio_stream_out {
* Implementation of this function is mandatory for offloaded playback.
*/
int (*flush)(struct audio_stream_out* stream);
/**
* Return 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.
*
* 3.0 and higher only.
*/
int (*get_presentation_position)(const struct audio_stream_out *stream,
uint64_t *frames, struct timespec *timestamp);
};
typedef struct audio_stream_out audio_stream_out_t;