func CreateStream(fragmentCount uint64, fragSample, freq, depth, chanConf uint32) *Stream { return (*Stream)(unsafe.Pointer(C.al_create_audio_stream(C.size_t(fragmentCount), C.uint(fragSample), C.uint(freq), C.ALLEGRO_AUDIO_DEPTH(depth), C.ALLEGRO_CHANNEL_CONF(chanConf)))) }
func CreateRecorder(fragmentCount uint64, samples, frequency, depth, chanConf uint32) *Recorder { return (*Recorder)(unsafe.Pointer(C.al_create_audio_recorder(C.size_t(fragmentCount), C.uint(samples), C.uint(frequency), C.ALLEGRO_AUDIO_DEPTH(depth), C.ALLEGRO_CHANNEL_CONF(chanConf)))) }
func CreateMixer(freq, depth, chanConf uint32) *Mixer { return (*Mixer)(unsafe.Pointer(C.al_create_mixer(C.uint(freq), C.ALLEGRO_AUDIO_DEPTH(depth), C.ALLEGRO_CHANNEL_CONF(chanConf)))) }
func CreateSample(buf unsafe.Pointer, samples, freq, depth, chanConf uint32, freeBuf bool) *Sample { return (*Sample)(unsafe.Pointer(C.al_create_sample(buf, C.uint(samples), C.uint(freq), C.ALLEGRO_AUDIO_DEPTH(depth), C.ALLEGRO_CHANNEL_CONF(chanConf), C.bool(freeBuf)))) }
func CreateVoice(freq, depth, chanConf uint32) *Voice { return (*Voice)(unsafe.Pointer(C.al_create_voice(C.uint(freq), C.ALLEGRO_AUDIO_DEPTH(depth), C.ALLEGRO_CHANNEL_CONF(chanConf)))) }
func GetDepthSize(depth uint32) uint32 { return uint32(C.al_get_audio_depth_size(C.ALLEGRO_AUDIO_DEPTH(depth))) }
// Converts an AudioDepth to an ALLEGRO_AUDIO_DEPTH func (self AudioDepth) toC() C.ALLEGRO_AUDIO_DEPTH { return C.ALLEGRO_AUDIO_DEPTH(self) }