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

[question] retrieving version info *before* context ? #936

Open
waltje opened this issue Nov 18, 2023 · 2 comments
Open

[question] retrieving version info *before* context ? #936

waltje opened this issue Nov 18, 2023 · 2 comments

Comments

@waltje
Copy link

waltje commented Nov 18, 2023

Hi all!

One cannot retrieve the library's version info (using "alGetString(AL_VERSION)") until after we have a context.

Is this a bug or a feature?

I would think retrieving that kind of info should "always work", regardless of context/device state?

(tested on 1.23.1-current, but also going back several releases)

@kcat
Copy link
Owner

kcat commented Nov 18, 2023

On systems that can have multiple OpenAL drivers, the context dictates which driver the alGetString call will use. Without a context, it doesn't know whether it's querying OpenAL Soft, Rapture3D, Generic Software, etc. For other systems or where multiple drivers aren't used, the context is still needed for proper behavior, to help ensure the code won't fail or misbehave if used on such a system.

A new set of functions would be needed to be able to query drivers without first setting up a device and context.

@waltje
Copy link
Author

waltje commented Nov 19, 2023 via email

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