예제 #1
0
파일: alc.go 프로젝트: nzlov/goal
func (device *Device) GetProcAddress(fname string) uintptr {
	s := alcString(fname)
	p := uintptr(C.alcGetProcAddress((*C.ALCdevice)(device), s))
	freeString(s)
	return p
}
예제 #2
0
파일: device.go 프로젝트: Jragonmiris/go-al
func (dev Device) procAddress(funcName string) (unsafe.Pointer, error) {
	return unsafe.Pointer(C.alcGetProcAddress(dev.device, (*C.ALCchar)(C.CString(funcName)))), GetError()
}