diff options
author | Andy Hung <hunga@google.com> | 2015-06-08 13:27:48 -0700 |
---|---|---|
committer | Andy Hung <hunga@google.com> | 2015-06-18 14:42:14 -0700 |
commit | 6653c935d2518a713587b3887ca09aa09ebfa7fd (patch) | |
tree | 6d9680827227e1a263b27e3eb4206a85a5122297 /include | |
parent | 1f1db8356b599bc40703c907fb69e6e539343532 (diff) | |
download | frameworks_av-6653c935d2518a713587b3887ca09aa09ebfa7fd.zip frameworks_av-6653c935d2518a713587b3887ca09aa09ebfa7fd.tar.gz frameworks_av-6653c935d2518a713587b3887ca09aa09ebfa7fd.tar.bz2 |
Return DEAD_OBJECT if getTimestamp cannot restore track
Bug: 21699132
Change-Id: I90443f8674ed949e2546048b231be75cd6fe6615
Diffstat (limited to 'include')
-rw-r--r-- | include/media/AudioTrack.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h index b897f2a..e02f1b7 100644 --- a/include/media/AudioTrack.h +++ b/include/media/AudioTrack.h @@ -690,6 +690,12 @@ public: * overall hardware latency to physical output. In WOULD_BLOCK cases, * one might poll again, or use getPosition(), or use 0 position and * current time for the timestamp. + * DEAD_OBJECT if AudioFlinger dies or the output device changes and + * the track cannot be automatically restored. + * The application needs to recreate the AudioTrack + * because the audio device changed or AudioFlinger died. + * This typically occurs for direct or offload tracks + * or if mDoNotReconnect is true. * INVALID_OPERATION if called on a FastTrack, wrong state, or some other error. * * The timestamp parameter is undefined on return, if status is not NO_ERROR. |