예제 #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))))
}
예제 #2
0
파일: audio.go 프로젝트: 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()))
}