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

Commit 51cdcbe7 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update doc for AudioRecord.read." into main

parents 36206e7d 9b368585
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -1768,7 +1768,9 @@ public class AudioRecord implements AudioRouting, MicrophoneDirection,
     * The representation of the data in the buffer will depend on the format specified in
     * the AudioRecord constructor, and will be native endian.
     * @param audioBuffer the direct buffer to which the recorded audio data is written.
     * Data is written to audioBuffer.position().
     *    Data is written to the beginning of the byte buffer. Importantly, this
     *    method ignores the {@link java.nio.Buffer#position()} and
     *    {@link java.nio.Buffer#limit()} properties.
     * @param sizeInBytes the number of requested bytes. It is recommended but not enforced
     *    that the number of bytes requested be a multiple of the frame size (sample size in
     *    bytes multiplied by the channel count).
@@ -1796,7 +1798,9 @@ public class AudioRecord implements AudioRouting, MicrophoneDirection,
     * The representation of the data in the buffer will depend on the format specified in
     * the AudioRecord constructor, and will be native endian.
     * @param audioBuffer the direct buffer to which the recorded audio data is written.
     * Data is written to audioBuffer.position().
     *    Data is written to the beginning of the byte buffer. Importantly, this
     *    method ignores the {@link java.nio.Buffer#position()} and
     *    {@link java.nio.Buffer#limit()} properties.
     * @param sizeInBytes the number of requested bytes. It is recommended but not enforced
     *    that the number of bytes requested be a multiple of the frame size (sample size in
     *    bytes multiplied by the channel count).