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

Commit 9aef0df6 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Update doc for aaudio data callback."

parents 3d6b936f 878fa3cb
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1173,7 +1173,10 @@ typedef int32_t aaudio_data_callback_result_t;
 * in the streams current data format to the audioData buffer.
 *
 * For an input stream, this function should read and process numFrames of data
 * from the audioData buffer.
 * from the audioData buffer. The data in the audioData buffer must not be modified
 * directly. Instead, it should be copied to another buffer before doing any modification.
 * In many cases, writing to the audioData buffer of an input stream will result in a
 * native exception.
 *
 * The audio data is passed through the buffer. So do NOT call AAudioStream_read() or
 * AAudioStream_write() on the stream that is making the callback.