Loading media/java/android/media/AudioTrack.java +6 −5 Original line number Original line Diff line number Diff line Loading @@ -1448,7 +1448,8 @@ public class AudioTrack * the position values have different meanings. * the position values have different meanings. * <br> * <br> * If looping is currently enabled and the new position is greater than or equal to the * If looping is currently enabled and the new position is greater than or equal to the * loop end marker, the behavior varies by API level: for API level 22 and above, * loop end marker, the behavior varies by API level: * as of {@link android.os.Build.VERSION_CODES#MNC}, * the looping is first disabled and then the position is set. * the looping is first disabled and then the position is set. * For earlier API levels, the behavior is unspecified. * For earlier API levels, the behavior is unspecified. * @return error code or success, see {@link #SUCCESS}, {@link #ERROR_BAD_VALUE}, * @return error code or success, see {@link #SUCCESS}, {@link #ERROR_BAD_VALUE}, Loading Loading @@ -1485,7 +1486,7 @@ public class AudioTrack * {@link #ERROR_BAD_VALUE} is returned. * {@link #ERROR_BAD_VALUE} is returned. * The loop range is the interval [startInFrames, endInFrames). * The loop range is the interval [startInFrames, endInFrames). * <br> * <br> * For API level 22 and above, the position is left unchanged, * As of {@link android.os.Build.VERSION_CODES#MNC}, the position is left unchanged, * unless it is greater than or equal to the loop end marker, in which case * unless it is greater than or equal to the loop end marker, in which case * it is forced to the loop start marker. * it is forced to the loop start marker. * For earlier API levels, the effect on position is unspecified. * For earlier API levels, the effect on position is unspecified. Loading Loading @@ -2032,12 +2033,12 @@ public class AudioTrack * The track must be stopped or paused, and * The track must be stopped or paused, and * the track's creation mode must be {@link #MODE_STATIC}. * the track's creation mode must be {@link #MODE_STATIC}. * <p> * <p> * For API level 22 and above, also resets the value returned by * As of {@link android.os.Build.VERSION_CODES#MNC}, also resets the value returned by * {@link #getPlaybackHeadPosition()} to zero. * {@link #getPlaybackHeadPosition()} to zero. * For earlier API levels, the reset behavior is unspecified. * For earlier API levels, the reset behavior is unspecified. * <p> * <p> * {@link #setPlaybackHeadPosition(int)} to zero * Use {@link #setPlaybackHeadPosition(int)} with a zero position * is recommended instead when the reset of {@link #getPlaybackHeadPosition} is not needed. * if the reset of <code>getPlaybackHeadPosition()</code> is not needed. * @return error code or success, see {@link #SUCCESS}, {@link #ERROR_BAD_VALUE}, * @return error code or success, see {@link #SUCCESS}, {@link #ERROR_BAD_VALUE}, * {@link #ERROR_INVALID_OPERATION} * {@link #ERROR_INVALID_OPERATION} */ */ Loading Loading
media/java/android/media/AudioTrack.java +6 −5 Original line number Original line Diff line number Diff line Loading @@ -1448,7 +1448,8 @@ public class AudioTrack * the position values have different meanings. * the position values have different meanings. * <br> * <br> * If looping is currently enabled and the new position is greater than or equal to the * If looping is currently enabled and the new position is greater than or equal to the * loop end marker, the behavior varies by API level: for API level 22 and above, * loop end marker, the behavior varies by API level: * as of {@link android.os.Build.VERSION_CODES#MNC}, * the looping is first disabled and then the position is set. * the looping is first disabled and then the position is set. * For earlier API levels, the behavior is unspecified. * For earlier API levels, the behavior is unspecified. * @return error code or success, see {@link #SUCCESS}, {@link #ERROR_BAD_VALUE}, * @return error code or success, see {@link #SUCCESS}, {@link #ERROR_BAD_VALUE}, Loading Loading @@ -1485,7 +1486,7 @@ public class AudioTrack * {@link #ERROR_BAD_VALUE} is returned. * {@link #ERROR_BAD_VALUE} is returned. * The loop range is the interval [startInFrames, endInFrames). * The loop range is the interval [startInFrames, endInFrames). * <br> * <br> * For API level 22 and above, the position is left unchanged, * As of {@link android.os.Build.VERSION_CODES#MNC}, the position is left unchanged, * unless it is greater than or equal to the loop end marker, in which case * unless it is greater than or equal to the loop end marker, in which case * it is forced to the loop start marker. * it is forced to the loop start marker. * For earlier API levels, the effect on position is unspecified. * For earlier API levels, the effect on position is unspecified. Loading Loading @@ -2032,12 +2033,12 @@ public class AudioTrack * The track must be stopped or paused, and * The track must be stopped or paused, and * the track's creation mode must be {@link #MODE_STATIC}. * the track's creation mode must be {@link #MODE_STATIC}. * <p> * <p> * For API level 22 and above, also resets the value returned by * As of {@link android.os.Build.VERSION_CODES#MNC}, also resets the value returned by * {@link #getPlaybackHeadPosition()} to zero. * {@link #getPlaybackHeadPosition()} to zero. * For earlier API levels, the reset behavior is unspecified. * For earlier API levels, the reset behavior is unspecified. * <p> * <p> * {@link #setPlaybackHeadPosition(int)} to zero * Use {@link #setPlaybackHeadPosition(int)} with a zero position * is recommended instead when the reset of {@link #getPlaybackHeadPosition} is not needed. * if the reset of <code>getPlaybackHeadPosition()</code> is not needed. * @return error code or success, see {@link #SUCCESS}, {@link #ERROR_BAD_VALUE}, * @return error code or success, see {@link #SUCCESS}, {@link #ERROR_BAD_VALUE}, * {@link #ERROR_INVALID_OPERATION} * {@link #ERROR_INVALID_OPERATION} */ */ Loading