mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Clarify Javadoc of AudioProcessor.queueInput
PiperOrigin-RevId: 425341138
This commit is contained in:
parent
d4eb1edff6
commit
23ef7b111e
1 changed files with 7 additions and 6 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue