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

[Ver 2.x] request to add either a Mix_LockAudio or a simple function Mix_GetAudioDeviceId #606

Open
Raffaello opened this issue Apr 19, 2024 · 0 comments

Comments

@Raffaello
Copy link

adding a Mix_GetAudioDeviceId allows to use SDL_LockAudioDevice

I can understand that allowing the device id outside the mixer can lead to programming errors.

Alternatively would it be possible to add Mix_LockAudioDevice (and the unlock part) ?


or probably the best choice would be:

would it make sense instead to return the device id from Mix_OpenAudioDevice (and Mix_OpenAudio) ?


Let me know if anything would make any sense to have that add on in the mixer.

p.s.
apologies if this might have been done for version 3 as i am still using 2.x

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

1 participant