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

Ok to add ALC_API to alcReopenDeviceSOFT? #959

Open
doobah opened this issue Jan 6, 2024 · 2 comments
Open

Ok to add ALC_API to alcReopenDeviceSOFT? #959

doobah opened this issue Jan 6, 2024 · 2 comments

Comments

@doobah
Copy link

doobah commented Jan 6, 2024

I'm attempting to write pinvoke bindings to openal-soft for a .net wrapper, and was wondering whether there is any reason why alcReopenDeviceSOFT shouldn't be exported? As in prepending it with ALC_API
https://github.com/kcat/openal-soft/blame/b81a270f6c1e795ca70d7684e0ccf35a19f247e2/include/AL/alext.h#L574

@kcat
Copy link
Owner

kcat commented Jan 13, 2024

The main reason is because it's not standard, and calling it directly puts a runtime requirement on the function existing so it wouldn't work with OpenAL DLLs that don't have it (e.g. the router on Windows, where it would still be available on OpenAL Soft devices but not directly from OpenAL32.dll itself).

@okaniku
Copy link

okaniku commented Jan 13, 2024

I see, I'm guessing the proper way then would be to make a binding for alcGetProcAddress(), then use that to get pointers to the non-standard functions?

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

3 participants