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

Tweaking Android audio buffer size #42

Open
vanfanel opened this issue Jun 2, 2023 · 1 comment
Open

Tweaking Android audio buffer size #42

vanfanel opened this issue Jun 2, 2023 · 1 comment

Comments

@vanfanel
Copy link

vanfanel commented Jun 2, 2023

Hi,

I have several Rock 5B boards, and I am investigating a low-latency audio application on it using Android (Vulkan is a must).
This app uses opensl as the sound output API, and opensl won’t do anything with custom audio buffer sizes set from the apps.

I know that, for other Android platforms, it’s possible to tweak the Android audio buffer size by editing system files, like for example /vendor/etc/audio_pcm.xml

Sadly, /vendor/etc/audio_pcm.xml is absent from the Rock 5B Android disribution.
So, how can the audio buffer size be edited/changed in the Rock 5B Android distribution?

It’s currently set to 480 block frames, apparently, and it should be possible to change it by editing Android system files, but what files should be edited to do so?

Thanks!

@vanfanel
Copy link
Author

vanfanel commented Jun 4, 2023

Seems to be related to /vendor/etc/audio_policy_configuration.xml, but what would be the buffer size setting??

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

1 participant