vova616 / GarageEngine

Game engine written in Go (golang).
MIT License
321 stars 33 forks source link

engine/audio is broken #7

Open varstr opened 10 years ago

varstr commented 10 years ago
# github.com/vova616/GarageEngine/engine/audio
./AudioSource.go:129: undefined: openal.DistanceModel
mighe commented 10 years ago

Same error for me

vova616 commented 10 years ago

Hey, sorry I have been busy. I will look into it over the weekend.

hilerchyn commented 10 years ago

screenshot from 2014-08-16 10 50 55

I change line 129 to "openal.SetDistanceModel(openal.GetDistanceModel())"

highway900 commented 9 years ago

If you cast this.distanceModel everything will work The problem above appears to be that calling openal.SetDistanceModel() with openal.GetDistanceModel() would mean you would always set the distance model to the same model it was previous set to... For line 129 I changed openal.SetDistanceModel(int32(this.DistanceModel))

That way if this.distanceModel is updated then this change would have an effect. Maybe I am missing a piece here, but so far this works for me and seems to maintain the functionality.