-
-
Notifications
You must be signed in to change notification settings - Fork 644
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
OpenAL Bindings Question #152
Comments
OpenCL also has similar classes (
You've got a point though. I think I'll make another pass on CL and AL and maybe simplify things a bit before the 3.0.0 release. A problem with AL in particular is that the methods |
My main thing was that its not really possible to use OpenAL without going through the Another pass over those two libraries is probably a good idea and maybe some way around those classes so they are there if people want to use them but not needed. That way getting started is still easy but going that way is not required. Though to me it seems like returning the pointer and using that makes more sense here simply because that's how it seems to be done in the other common libraries ( |
Opening the default device and creating a default context with the above changes and no error checks: // Can call "alc" functions at any time
long device = alcOpenDevice((ByteBuffer)null);
ALCCapabilities deviceCaps = ALC.createCapabilities(device);
long context = alcCreateContext(device, (ByteBuffer)null);
alcMakeContextCurrent(context);
AL.createCapabilities(deviceCaps);
// Can now call "al" functions |
When using the other libraries that LWJGL 3 provides LWJGL acts as a very thin wrapper that just brings the library into Java with some basic changes and extra methods along with some utility type classes that make it easier to use. However with OpenAL instead of simply wrapping the library like it does with the others it requires us to go though
ALContext
in order to use most of that library. Is there a reason why this is the case in this library and not with the others? Its perfectly fine I'm just curious as to why this is the only library that has this, from what I have messed around with.The text was updated successfully, but these errors were encountered: