docs: Note SDL_EVENT_AUDIO_DEVICE_ADDED is sent for all devices at startup.

Fixes https://github.com/libsdl-org/sdlwiki/issues/721
This commit is contained in:
Ryan C. Gordon
2025-07-29 23:21:47 -04:00
parent 39794ae9cd
commit acbe86399d

View File

@@ -705,6 +705,10 @@ typedef struct SDL_GamepadSensorEvent
/**
* Audio device event structure (event.adevice.*)
*
* Note that SDL will send a SDL_EVENT_AUDIO_DEVICE_ADDED event for every
* device it discovers during initialization. After that, this event will only
* arrive when a device is hotplugged during the program's run.
*
* \since This struct is available since SDL 3.2.0.
*/
typedef struct SDL_AudioDeviceEvent