Merge "Add mention of start threashold in AudioTrack.play()" into tm-dev am: 8352f5b53e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18280950

Change-Id: I5bd5cec4b71cb75dd65f4de6f836a375224b4e6a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Dorin Drimus
2022-05-11 20:23:45 +00:00
committed by Automerger Merge Worker

View File

@@ -2910,6 +2910,10 @@ public class AudioTrack extends PlayerBase
* For portability, an application should prime the data path to the maximum allowed
* by writing data until the write() method returns a short transfer count.
* This allows play() to start immediately, and reduces the chance of underrun.
*<p>
* As of {@link android.os.Build.VERSION_CODES#S} the minimum level to start playing
* can be obtained using {@link #getStartThresholdInFrames()} and set with
* {@link #setStartThresholdInFrames(int)}.
*
* @throws IllegalStateException if the track isn't properly initialized
*/