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

feat(openal-info): Add values related to sources inside openal-info.c #940

Merged
merged 2 commits into from
Dec 2, 2023

Conversation

MathiusD
Copy link
Contributor

Small PR to add sources values inside openal-info

@@ -148,6 +154,10 @@ static void printALCInfo(ALCdevice *device)
printf("ALC extensions:");
printList(alcGetString(device, ALC_EXTENSIONS), ' ');
checkALCErrors(device);
printALCIntegerValue(device, ALC_MONO_SOURCES, "ALC_MONO_SOURCES");
checkALCErrors(device);
printALCIntegerValue(device, ALC_STEREO_SOURCES, "ALC_STEREO_SOURCES");
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be done after the context is created and made current. It would also make sense to put the checkALCErrors call by the alc* calls that could cause an error, and avoid printing the values if there was an error since the variable would be uninitialized in that case.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, my bad :x, it's fixed

MathiusD added a commit to MathiusD/openal-soft that referenced this pull request Nov 29, 2023
@MathiusD MathiusD force-pushed the feature/openal-info/add_source_info branch from 950ad31 to 0f0f7e5 Compare December 1, 2023 12:45
@kcat kcat merged commit 4249334 into kcat:master Dec 2, 2023
9 checks passed
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

Successfully merging this pull request may close these issues.

2 participants