From 23ef7b111e8fe02cdbba61d0b69cd095bc27d958 Mon Sep 17 00:00:00 2001 From: kimvde Date: Mon, 31 Jan 2022 13:25:27 +0000 Subject: [PATCH] Clarify Javadoc of AudioProcessor.queueInput PiperOrigin-RevId: 425341138 --- .../media3/exoplayer/audio/AudioProcessor.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/audio/AudioProcessor.java b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/audio/AudioProcessor.java index a06385bb78..de6c34e119 100644 --- a/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/audio/AudioProcessor.java +++ b/libraries/exoplayer/src/main/java/androidx/media3/exoplayer/audio/AudioProcessor.java @@ -104,13 +104,14 @@ public interface AudioProcessor { boolean isActive(); /** - * Queues audio data between the position and limit of the input {@code buffer} for processing. - * {@code buffer} must be a direct byte buffer with native byte order. Its contents are treated as - * read-only. Its position will be advanced by the number of bytes consumed (which may be zero). - * The caller retains ownership of the provided buffer. Calling this method invalidates any - * previous buffer returned by {@link #getOutput()}. + * Queues audio data between the position and limit of the {@code inputBuffer} for processing. + * After calling this method, processed output may be available via {@link #getOutput()}. Calling + * {@code queueInput(ByteBuffer)} again invalidates any pending output. * - * @param inputBuffer The input buffer to process. + * @param inputBuffer The input buffer to process. It must be a direct byte buffer with native + * byte order. Its contents are treated as read-only. Its position will be advanced by the + * number of bytes consumed (which may be zero). The caller retains ownership of the provided + * buffer. */ void queueInput(ByteBuffer inputBuffer);