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

oboe: remove OpenSL ES direct links #2014

Merged
merged 2 commits into from
May 6, 2024
Merged

oboe: remove OpenSL ES direct links #2014

merged 2 commits into from
May 6, 2024

Conversation

philburk
Copy link
Collaborator

@philburk philburk commented May 2, 2024

Use dlsym() to find the address of symbols like SL_IID_PLAY. This allows Oboe to be run on a device that does not have "libOpenSLES.so".

This fixes b/337360630

Use dlsym() to find the address of symbols like SL_IID_PLAY.
This allows Oboe to be run on a device that does not
have "libOpenSLES.so".

This fixes b/337360630
@philburk philburk requested a review from robertwu1 May 2, 2024 23:33
A failure in initializing the OpenSL ES engine
would call close(), which tried to lock mLock again.

Use dlerror() to print info about link problems.

Add a state variable for better management of the dynamic linking.
@philburk philburk merged commit b302400 into main May 6, 2024
3 checks passed
@philburk philburk deleted the opensl_nolink branch June 12, 2024 23:38
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.

2 participants