openAudio

Wraps Mix_OpenAudio which opens the default audio device for playback by SDL_mixer

@safe @trusted
static if(bindSDLMixer)
void
openAudio

Parameters

frequency uint

audio playback frequency in Hz

format AudioFormat

dsdl2.AudioFormat enumeration indicating the scalar type of each audio sample

channels uint

channels for dsdl2.mixer.Chunk playback (1 for mono; 2 for stereo)

chunkSize uint

audio buffer size

Throws

dsdl2.SDLException if failed to open default audio device

Meta