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

Commit ada99cd7 authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "Spell out parameters" into mnc-dev

parents c25771ce 5f68c7a3
Loading
Loading
Loading
Loading
+5 −5
Original line number Original line Diff line number Diff line
@@ -908,8 +908,8 @@ public class AudioTrack
    }
    }


    /**
    /**
     * Returns the current playback params.
     * Returns the current playback parameters.
     * See {@link #setPlaybackParams(PlaybackParams)} to set playback params
     * See {@link #setPlaybackParams(PlaybackParams)} to set playback parameters
     * @return current {@link PlaybackParams}.
     * @return current {@link PlaybackParams}.
     * @throws IllegalStateException if track is not initialized.
     * @throws IllegalStateException if track is not initialized.
     */
     */
@@ -1311,8 +1311,8 @@ public class AudioTrack




    /**
    /**
     * Sets the playback params.
     * Sets the playback parameters.
     * This method returns failure if it cannot apply the playback params.
     * This method returns failure if it cannot apply the playback parameters.
     * One possible cause is that the parameters for speed or pitch are out of range.
     * One possible cause is that the parameters for speed or pitch are out of range.
     * Another possible cause is that the <code>AudioTrack</code> is streaming
     * Another possible cause is that the <code>AudioTrack</code> is streaming
     * (see {@link #MODE_STREAM}) and the
     * (see {@link #MODE_STREAM}) and the
@@ -1321,7 +1321,7 @@ public class AudioTrack
     * {@link #getMinBufferSize(int, int, int)}) to allow proper playback.
     * {@link #getMinBufferSize(int, int, int)}) to allow proper playback.
     * @param params see {@link PlaybackParams}. In particular,
     * @param params see {@link PlaybackParams}. In particular,
     * speed, pitch, and audio mode should be set.
     * speed, pitch, and audio mode should be set.
     * @throws IllegalArgumentException if the params are invalid or not accepted.
     * @throws IllegalArgumentException if the parameters are invalid or not accepted.
     * @throws IllegalStateException if track is not initialized.
     * @throws IllegalStateException if track is not initialized.
     */
     */
    public void setPlaybackParams(@NonNull PlaybackParams params) {
    public void setPlaybackParams(@NonNull PlaybackParams params) {