You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
I tried to create a wrapper for
OpenSLES
, but couldn't figure out how to wrap functions inside a struct such asSLObjectItf_->RegisterCallback
.Is it possible to wrap this library?
The functions can be found at this link: OpenSLES.h.
The text was updated successfully, but these errors were encountered: