From 1f1db8356b599bc40703c907fb69e6e539343532 Mon Sep 17 00:00:00 2001 From: Andy Hung Date: Mon, 8 Jun 2015 13:26:10 -0700 Subject: Fix AudioTrack comments relating to use of restoreTrack_l() Bug: 21699132 Change-Id: Ib0d029a5e28676aeffbbbafc88c52a17367a413c --- include/media/AudioTrack.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include') 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 -- cgit v1.1