logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_AudioDeviceEvent - Audio device event structure (event.adevice.*)

Availability

       This struct is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                        SDL_AudioDeviceEvent(3type)

Name

       SDL_AudioDeviceEvent - Audio device event structure (event.adevice.*)

Synopsis

#include<SDL3/SDL_events.h>typedefstructSDL_AudioDeviceEvent{SDL_EventTypetype;/**<SDL_EVENT_AUDIO_DEVICE_ADDED,orSDL_EVENT_AUDIO_DEVICE_REMOVED,orSDL_EVENT_AUDIO_DEVICE_FORMAT_CHANGED*/Uint32reserved;Uint64timestamp;/**<Innanoseconds,populatedusingSDL_GetTicksNS()*/SDL_AudioDeviceIDwhich;/**<SDL_AudioDeviceIDforthedevicebeingaddedorremovedorchanging*/boolrecording;/**<falseifaplaybackdevice,trueifarecordingdevice.*/Uint8padding1;Uint8padding2;Uint8padding3;}SDL_AudioDeviceEvent;

See Also