Exemple #1
0
func (device *Device) GetEnumValue(enumname string) ALCenum {
	s := alcString(enumname)
	e := ALCenum(C.alcGetEnumValue((*C.ALCdevice)(device), s))
	freeString(s)
	return e
}
Exemple #2
0
func (dev Device) enumValue(name string) (int, error) {
	return int(C.int(C.alcGetEnumValue(dev.device, (*C.ALCchar)(C.CString(name))))), GetError()
}