SDL_AudioDeviceEvent

Audio device event structure (event.adevice.*)

\since This struct is available since SDL 3.2.0.

Members

Variables

padding1
Uint8 padding1;
Undocumented in source.
padding2
Uint8 padding2;
Undocumented in source.
padding3
Uint8 padding3;
Undocumented in source.
recording
bool recording;

< false if a playback device, true if a recording device.

reserved
Uint32 reserved;
Undocumented in source.
timestamp
Uint64 timestamp;

< In nanoseconds, populated using SDL_GetTicksNS()

type
SDL_EventType type;

< SDL_EVENT_AUDIO_DEVICE_ADDED, or SDL_EVENT_AUDIO_DEVICE_REMOVED, or SDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED

which
SDL_AudioDeviceID which;

< SDL_AudioDeviceID for the device being added or removed or changing

Meta