Skip to content

oboe: remove OpenSL ES direct links#2014

Merged
philburk merged 2 commits intomainfrom
opensl_nolink
May 6, 2024
Merged

oboe: remove OpenSL ES direct links#2014
philburk merged 2 commits intomainfrom
opensl_nolink

Conversation

@philburk
Copy link
Copy Markdown
Contributor

@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
@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