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