Skip to content

Commit

Permalink
opensles: fix getBufferSizeInFrames()
Browse files Browse the repository at this point in the history
Return the BufferCapacityInFrames instead of zero.

Fixes #285
  • Loading branch information
Phil Burk committed Nov 29, 2018
1 parent 3822007 commit 26a3a0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/opensles/AudioStreamOpenSLES.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ Result AudioStreamOpenSLES::open() {

if (!usingFIFO()) {
mBufferCapacityInFrames = mFramesPerBurst * kBufferQueueLength;
mBufferSizeInFrames = mBufferCapacityInFrames;
}

return Result::OK;
Expand Down

0 comments on commit 26a3a0d

Please sign in to comment.