Exemplo n.º 1
0
func init() {
	Listener = nil
	Device = openal.OpenDevice("")
	Context = Device.CreateContext()
	Context.Activate()
	currentDistanceModel = DistanceModel(openal.GetDistanceModel())
}
Exemplo n.º 2
0
func (this *AudioSource) Update() {
	if currentDistanceModel != this.distanceModel {
		openal.SetDistanceModel(openal.GetDistanceModel())
	}
	this.UpdateTransform()
	this.updateBuffers()
}