Skip to content

Commit

Permalink
Improve docs for setBufferSizeInFrames
Browse files Browse the repository at this point in the history
Fixes #403
  • Loading branch information
philburk authored Nov 20, 2023
1 parent fc926d6 commit cd0f776
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/oboe/AudioStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,13 @@ class AudioStream : public AudioStreamBase {
*
* This cannot be set higher than getBufferCapacity().
*
* This should only be used with Output streams. It will
* be ignored for Input streams because they are generally kept as empty as possible.
*
* For OpenSL ES, this method only has an effect on output stream that do NOT
* use a callback. The blocking writes goes into a buffer in Oboe and the size of that
* buffer is controlled by this method.
*
* @param requestedFrames requested number of frames that can be filled without blocking
* @return the resulting buffer size in frames (obtained using value()) or an error (obtained
* using error())
Expand Down

0 comments on commit cd0f776

Please sign in to comment.