dsdl2.audio

Members

Classes

AudioDevice
class AudioDevice
Undocumented in source.

Enums

AudioFormat
enum AudioFormat

D enum that wraps SDL_AudioFormat defining scalar type per audio sample

AudioStatus
enum AudioStatus

D enum that wraps SDL_AUDIO_* status enumerations

Functions

closeAudio
void closeAudio()

Wraps SDL_CloseAudio which closes the default audio device

getAudioDeviceNames
const(string[]) getAudioDeviceNames()

Acts as SDL_GetNumAudioDevices(0) and SDL_GetAudioDeviceName(..., 0) which return a name list of available non-capturing audio devices

getAudioDrivers
const(string[]) getAudioDrivers()

Wraps SDL_GetNumAudioDrivers and SDL_GetAudioDriver which return a list of available audio drivers

getAudioStatus
AudioStatus getAudioStatus()

Wraps SDL_GetAudioStatus which returns the current status of the default audio device

getCapturingAudioDeviceNames
const(string[]) getCapturingAudioDeviceNames()

Acts as SDL_GetNumAudioDevices(1) and SDL_GetAudioDeviceName(..., 1) which return a name list of available capturing audio devices

getCurrentAudioDriver
string getCurrentAudioDriver()

Wraps SDL_GetCurrentAudioDriver which returns the current audio driver

initAudio
void initAudio(string driverName)

Wraps SDL_AudioInit which initializes the audio subsystem while specifying the audio driver used

lockAudio
void lockAudio()

Wraps SDL_LockAudio which locks the default audio device

openAudio
AudioSpec openAudio(AudioSpec desired)

Wraps SDL_OpenAudio which opens the default audio device

pauseAudio
void pauseAudio(bool paused)

Wraps SDL_PauseAudio which pauses the default audio device

quitAudio
void quitAudio()

Wraps SDL_AudioQuit which quits the audio subsystem

resumeAudio
void resumeAudio()

Acts as SDL_PauseAudio(0) which resumes the default audio device

unlockAudio
void unlockAudio()

Wraps SDL_UnlockAudio which unlocks the default audio device

Manifest constants

maxVolume
enum maxVolume;

Alias to SDL_MIX_MAXVOLUME

Structs

AudioSpec
struct AudioSpec
Undocumented in source.

Meta

Authors

Avaxar <avaxar@nekkl.org>