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

Wrap OpenSLES functions #879

Closed
kawanakaiku opened this issue Oct 23, 2023 · 2 comments
Closed

Wrap OpenSLES functions #879

kawanakaiku opened this issue Oct 23, 2023 · 2 comments

Comments

@kawanakaiku
Copy link

I tried to create a wrapper for OpenSLES, but couldn't figure out how to wrap functions inside a struct such as SLObjectItf_->RegisterCallback.
Is it possible to wrap this library?

The functions can be found at this link: OpenSLES.h.

@ptitSeb
Copy link
Owner

ptitSeb commented Oct 24, 2023

Yeah, that API is not that simple, bacause that structure SLObjectItf_ (or SLObjectItf taht is a pointer to that structure). Needs special care, as all the filed needs some callback function.

It's a complex task, wrapping this libs. I suggest you take a look at wrappedpulse.c nad some of the simpler one, like wrappedlzma.c and wrappedxml2.c to have a better idea of what wrapping that structure might means.

@kawanakaiku
Copy link
Author

Thank you for giving examples. They look very complicated, but I will try that when I have time.

@kawanakaiku kawanakaiku closed this as not planned Won't fix, can't repro, duplicate, stale Nov 5, 2023
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

2 participants