THIS PAGE IS A WORK IN PROGRESS ... Please make edits to this page to improve it!
Audio device event structure (event.adevice.*)
Defined in [SDL_events.h](https://github.com/libsdl-org/SDL/blob/SDL2/include/SDL_events.h), but apps should _only_ `#include "SDL.h"`!
typedef struct SDL_AudioDeviceEvent
{/**< ::SDL_AUDIODEVICEADDED, or ::SDL_AUDIODEVICEREMOVED */
Uint32 type; /**< In milliseconds, populated using SDL_GetTicks() */
Uint32 timestamp; /**< The audio device index for the ADDED event (valid until next SDL_GetNumAudioDevices() call), SDL_AudioDeviceID for the REMOVED event */
Uint32 which; /**< zero if an output device, non-zero if a capture device. */
Uint8 iscapture;
Uint8 padding1;
Uint8 padding2;
Uint8 padding3; } SDL_AudioDeviceEvent;
Uint32 |
type |
SDL_AUDIODEVICEADDED, or SDL_AUDIODEVICEREMOVED |
Uint32 |
timestamp |
the timestamp of the event |
Uint32 |
which |
the audio device index for the SDL_AUDIODEVICEADDED event (valid until next SDL_GetNumAudioDevices() call), SDL_AudioDeviceID for the SDL_AUDIODEVICEREMOVED event |
Uint8 |
iscapture |
zero if an audio output device, non-zero if an audio capture device |
CategoryAPI, CategoryAPIStruct, CategoryStruct, CategoryEvents, CategoryDraft