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