Loading media/java/android/media/AudioTrack.java +5 −5 Original line number Original line Diff line number Diff line Loading @@ -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. */ */ Loading Loading @@ -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 Loading @@ -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) { Loading Loading
media/java/android/media/AudioTrack.java +5 −5 Original line number Original line Diff line number Diff line Loading @@ -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. */ */ Loading Loading @@ -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 Loading @@ -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) { Loading