|
SDL 3.0
|
#include <SDL_events.h>
Data Fields | |
| SDL_EventType | type |
| Uint32 | reserved |
| Uint64 | timestamp |
| SDL_AudioDeviceID | which |
| bool | recording |
| Uint8 | padding1 |
| Uint8 | padding2 |
| Uint8 | padding3 |
Audio device event structure (event.adevice.*)
Definition at line 707 of file SDL_events.h.
| Uint8 SDL_AudioDeviceEvent::padding1 |
Definition at line 714 of file SDL_events.h.
| Uint8 SDL_AudioDeviceEvent::padding2 |
Definition at line 715 of file SDL_events.h.
| Uint8 SDL_AudioDeviceEvent::padding3 |
Definition at line 716 of file SDL_events.h.
| bool SDL_AudioDeviceEvent::recording |
false if a playback device, true if a recording device.
Definition at line 713 of file SDL_events.h.
| Uint32 SDL_AudioDeviceEvent::reserved |
Definition at line 710 of file SDL_events.h.
| Uint64 SDL_AudioDeviceEvent::timestamp |
In nanoseconds, populated using SDL_GetTicksNS()
Definition at line 711 of file SDL_events.h.
| SDL_EventType SDL_AudioDeviceEvent::type |
SDL_EVENT_AUDIO_DEVICE_ADDED, or SDL_EVENT_AUDIO_DEVICE_REMOVED, or SDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED
Definition at line 709 of file SDL_events.h.
| SDL_AudioDeviceID SDL_AudioDeviceEvent::which |
SDL_AudioDeviceID for the device being added or removed or changing
Definition at line 712 of file SDL_events.h.