You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 givenSDL_EVENT_AUDIO_DEVICE_ADDED
event is fired for initialDetectDevices
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.
The text was updated successfully, but these errors were encountered: