Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

setting the buffersize #79

Closed
yangwuan55 opened this issue Apr 8, 2018 · 3 comments
Closed

setting the buffersize #79

yangwuan55 opened this issue Apr 8, 2018 · 3 comments
Assignees

Comments

@yangwuan55
Copy link

yangwuan55 commented Apr 8, 2018

I find the output buffersize is always 384,and can't set the buffersize.Is it right?
Thanks for help!

@philburk philburk self-assigned this Apr 9, 2018
@philburk
Copy link
Collaborator

philburk commented Apr 9, 2018

If Oboe is using OpenSL ES then you can't change the buffer size.
If Oboe is using AAudio then it should work. I recommend setting the buffer size to a multiple of the framesPerBurst. If you are glitching then increase the bufferSize. If you want lower latency then lower the buffer size. You cannot increase the buffer size above the capacity.

The Oboe API is basically a C++ version of the AAudio API. So I recommend reading about the AAudio API here:

https://developer.android.com/ndk/guides/audio/aaudio/aaudio.html

It discusses strategies for adjusting the buffer size.

If you are having problems then let us know what device and OS version number you are using.

@philburk philburk changed the title About the buffersize setting the buffersize Apr 9, 2018
@dturner
Copy link
Collaborator

dturner commented Apr 9, 2018

There's also the official Oboe documentation here: https://github.com/google/oboe/blob/master/FullGuide.md

@yangwuan55
Copy link
Author

Thanks!

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

No branches or pull requests

3 participants