Skip to content

opensles: implement capacity using buffer queue length#1601

Merged
philburk merged 4 commits intomainfrom
opsl_cap_744
Aug 30, 2022
Merged

opensles: implement capacity using buffer queue length#1601
philburk merged 4 commits intomainfrom
opsl_cap_744

Conversation

@philburk
Copy link
Copy Markdown
Contributor

@philburk philburk commented Aug 6, 2022

The OpenSL ES buffer queue length controls the allocated size of
the internal buffer. So we can use that to make sure there is enough
capacity to protect against glitches when setting a callback size
or a high capacity.

Fixes #744
It might help with #952

The OpenSL ES buffer queue length controls the allocated size of
the internal buffer. So we can use that to make sure there is enough
capacity to protect against glitches when setting a callback size
or a high capacity.

Fixes #744
It might help with #952
@philburk philburk requested review from flamme and robertwu1 August 6, 2022 23:59
Comment thread src/opensles/AudioStreamOpenSLES.cpp Outdated
Comment thread src/opensles/AudioStreamOpenSLES.cpp Outdated
Comment thread src/opensles/AudioStreamOpenSLES.cpp Outdated
Comment thread src/opensles/AudioStreamOpenSLES.cpp Outdated
Copy link
Copy Markdown
Collaborator

@robertwu1 robertwu1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some comments. Thanks!

Bump to version 1.6.4
Comment thread apps/OboeTester/app/src/main/java/com/mobileer/oboetester/TestAudioActivity.java Outdated
Comment thread apps/OboeTester/app/src/main/java/com/mobileer/oboetester/TestAudioActivity.java Outdated
Comment thread src/opensles/AudioStreamOpenSLES.cpp Outdated
@robertwu1
Copy link
Copy Markdown
Collaborator

Feel free to submit once you addressed my remaining comments.

@robertwu1
Copy link
Copy Markdown
Collaborator

LGTM!

@philburk philburk merged commit d0645d6 into main Aug 30, 2022
@philburk philburk deleted the opsl_cap_744 branch August 30, 2022 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adjust OpenSL ES buffer queue length based on capacity

2 participants