SDL 3.0
|
Audio device event structure (event.adevice.*) More...
#include <SDL_events.h>
Data Fields | |
Uint32 | type |
Uint64 | timestamp |
SDL_AudioDeviceID | which |
Uint8 | iscapture |
Uint8 | padding1 |
Uint8 | padding2 |
Uint8 | padding3 |
Audio device event structure (event.adevice.*)
Definition at line 484 of file SDL_events.h.
Uint8 SDL_AudioDeviceEvent::iscapture |
zero if an output device, non-zero if a capture device.
Definition at line 489 of file SDL_events.h.
Uint8 SDL_AudioDeviceEvent::padding1 |
Definition at line 490 of file SDL_events.h.
Uint8 SDL_AudioDeviceEvent::padding2 |
Definition at line 491 of file SDL_events.h.
Uint8 SDL_AudioDeviceEvent::padding3 |
Definition at line 492 of file SDL_events.h.
Uint64 SDL_AudioDeviceEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 487 of file SDL_events.h.
Uint32 SDL_AudioDeviceEvent::type |
SDL_EVENT_AUDIO_DEVICE_ADDED, or SDL_EVENT_AUDIO_DEVICE_REMOVED
Definition at line 486 of file SDL_events.h.
SDL_AudioDeviceID SDL_AudioDeviceEvent::which |
The audio device index for the ADDED event (valid until next SDL_GetNumAudioDevices() call), SDL_AudioDeviceID for the REMOVED event
Definition at line 488 of file SDL_events.h.