g3n / engine

Go 3D Game Engine (http://g3n.rocks)
https://discord.gg/NfaeVr8zDg
BSD 2-Clause "Simplified" License
2.8k stars 295 forks source link

al.GetListenerfv() : wrong signature #245

Closed notnot closed 3 years ago

notnot commented 3 years ago
func GetListenerfv(param uint32, values []uint32) {

    C.alGetListenerfv(C.ALenum(param), (*C.ALfloat)(unsafe.Pointer(&values[0])))
}

should be:

func GetListenerfv(param uint32, values []float32) {

    C.alGetListenerfv(C.ALenum(param), (*C.ALfloat)(unsafe.Pointer(&values[0])))
}
danaugrs commented 3 years ago

Fixed by https://github.com/g3n/engine/commit/a70b9ffadebdeec6720dd2855de2a51889ca12fe. Thanks!