Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c5fd384 authored by Dorin Drimus's avatar Dorin Drimus Committed by Automerger Merge Worker
Browse files

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

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

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



Change-Id: Ib2b60994930f307ae6bde3cf2ecbc520d3941f16
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 9ea837a6 912445be
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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
     */