Exemplo n.º 1
0
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))))
}
Exemplo n.º 2
0
Arquivo: audio.go Projeto: beoran/algo
// Creates an audio stream, with NO finalizer installed.
func CreateAudioStreamRaw(bufc, samples, freq uint, depth AudioDepth, chan_conf ChannelConf) *AudioStream {
	return wrapAudioStreamRaw(C.al_create_audio_stream(C.size_t(bufc), C.uint(samples),
		C.uint(freq), depth.toC(), chan_conf.toC()))
}