SDL2AudioDevice

Constructors

this
this(SDL2 sdl2, const(char)[] name, int iscapture, const(SDL_AudioSpec*) desired, SDL_AudioSpec* obtained, int allowed_changes)

Destructor

A destructor is present on this object, but not explicitly documented in the source.

Members

Functions

lock
void lock()

Makes SDL not run the callback from desired.callback.

pause
void pause()

Stops playing sound on this device

play
void play()

Starts playing sound on this device

playing
bool playing()

Checks if this audio device is currently playing sound.

status
SDL_AudioStatus status()
unlock
void unlock()

Makes SDL run the callback from desired.callback again.

Meta