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

Feedback on page SDL3/SDL_AudioDeviceEvent #721

Open
MrOnlineCoder opened this issue Feb 1, 2025 · 0 comments
Open

Feedback on page SDL3/SDL_AudioDeviceEvent #721

MrOnlineCoder opened this issue Feb 1, 2025 · 0 comments

Comments

@MrOnlineCoder
Copy link
Contributor

A question emerged from Discord discussion:

From practical experiments, it seems that SDL_EVENT_AUDIO_DEVICE_ADDED is fired for each already available audio device on program startup. Is it guaranteed to do so on every platform? And if yes, should it be documented somewhere (like this page) and is there a way to determine if a given SDL_EVENT_AUDIO_DEVICE_ADDED event is fired for initial DetectDevices call on audio init, or it's an actual event about new hardware being connected in runtime?

User Kenji needed to know when a specific device was added, and therefore, was investigating if they can rely on SDL_EVENT_AUDIO_DEVICE_ADDED being always fired for all devices, whatever their connection moment in program lifecycle is.

Thanks in advance and sorry if I should've done it in SDL repo instead of wiki feedback.

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