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

Commit 171070d2 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi Committed by Android (Google) Code Review
Browse files

Merge "Update AudioTrack.stop() javadoc"

parents 00c3aaa2 a701da8e
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -840,7 +840,10 @@ public class AudioTrack

    /**
     * Stops playing the audio data.
     *
     * When used on an instance created in {@link #MODE_STREAM} mode, audio will stop playing
     * after the last buffer that was written has been played. For an immediate stop, use
     * {@link #pause()}, followed by {@link #flush()} to discard audio data that hasn't been played
     * back yet.
     * @throws IllegalStateException
     */
    public void stop()
@@ -859,7 +862,7 @@ public class AudioTrack
    /**
     * Pauses the playback of the audio data. Data that has not been played
     * back will not be discarded. Subsequent calls to {@link #play} will play
     * this data back.
     * this data back. See {@link #flush()} to discard this data.
     *
     * @throws IllegalStateException
     */