summaryrefslogtreecommitdiffstats
path: root/include/media/AudioTrack.h
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2015-06-08 13:26:10 -0700
committerAndy Hung <hunga@google.com>2015-06-18 14:38:32 -0700
commit1f1db8356b599bc40703c907fb69e6e539343532 (patch)
treebee3a3cc00e5577a7d847871e77f9d3712c92d25 /include/media/AudioTrack.h
parentbd974011599b6d4ff47c1cee36d617f191dc0c2f (diff)
downloadframeworks_av-1f1db8356b599bc40703c907fb69e6e539343532.zip
frameworks_av-1f1db8356b599bc40703c907fb69e6e539343532.tar.gz
frameworks_av-1f1db8356b599bc40703c907fb69e6e539343532.tar.bz2
Fix AudioTrack comments relating to use of restoreTrack_l()
Bug: 21699132 Change-Id: Ib0d029a5e28676aeffbbbafc88c52a17367a413c
Diffstat (limited to 'include/media/AudioTrack.h')
-rw-r--r--include/media/AudioTrack.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/media/AudioTrack.h b/include/media/AudioTrack.h
index c0bc516..b897f2a 100644
--- a/include/media/AudioTrack.h
+++ b/include/media/AudioTrack.h
@@ -644,6 +644,12 @@ public:
* BAD_VALUE size is invalid
* WOULD_BLOCK when obtainBuffer() returns same, or
* AudioTrack was stopped during the write
+ * DEAD_OBJECT when 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.
* or any other error code returned by IAudioTrack::start() or restoreTrack_l().
* Default behavior is to only return when all data has been transferred. Set 'blocking' to
* false for the method to return immediately without waiting to try multiple times to write