SDL 3.0
SDL_AudioDeviceEvent Struct Reference

#include <SDL_events.h>

Data Fields

SDL_EventType type
 
Uint32 reserved
 
Uint64 timestamp
 
SDL_AudioDeviceID which
 
Uint8 recording
 
Uint8 padding1
 
Uint8 padding2
 
Uint8 padding3
 

Detailed Description

Audio device event structure (event.adevice.*)

Since
This struct is available since SDL 3.0.0.

Definition at line 673 of file SDL_events.h.

Field Documentation

◆ padding1

Uint8 SDL_AudioDeviceEvent::padding1

Definition at line 680 of file SDL_events.h.

◆ padding2

Uint8 SDL_AudioDeviceEvent::padding2

Definition at line 681 of file SDL_events.h.

◆ padding3

Uint8 SDL_AudioDeviceEvent::padding3

Definition at line 682 of file SDL_events.h.

◆ recording

Uint8 SDL_AudioDeviceEvent::recording

zero if a playback device, non-zero if a recording device.

Definition at line 679 of file SDL_events.h.

◆ reserved

Uint32 SDL_AudioDeviceEvent::reserved

Definition at line 676 of file SDL_events.h.

◆ timestamp

Uint64 SDL_AudioDeviceEvent::timestamp

In nanoseconds, populated using SDL_GetTicksNS()

Definition at line 677 of file SDL_events.h.

◆ type

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 675 of file SDL_events.h.

◆ which

SDL_AudioDeviceID SDL_AudioDeviceEvent::which

SDL_AudioDeviceID for the device being added or removed or changing

Definition at line 678 of file SDL_events.h.


The documentation for this struct was generated from the following file: