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 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 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 GetChannelCount(conf uint32) uint32 { return uint32(C.al_get_channel_count(C.ALLEGRO_CHANNEL_CONF(conf))) }