Esempio n. 1
0
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))))
}
Esempio n. 2
0
File: audio.go Progetto: beoran/algo
// creates a C voice
func createVoice(freq uint, depth AudioDepth, chan_conf ChannelConf) *C.ALLEGRO_VOICE {
	return C.al_create_voice(C.uint(freq), depth.toC(), chan_conf.toC())
}