示例#1
0
func GetError() error {
	if errVal := C.alGetError(); errVal == C.AL_NO_ERROR {
		return nil
	} else {
		return Error{errVal}
	}
}
示例#2
0
文件: al.go 项目: nzlov/goal
/*
 * Error support.
 * Obtain the most recent error generated in the AL state machine.
 */
func GetError() ALenum {
	return ALenum(C.alGetError())
}
示例#3
0
文件: al_pc.go 项目: tanema/amore
func alGetError() int32 {
	return int32(C.alGetError())
}
示例#4
0
文件: core.go 项目: jaekwon/go-openal
// GetError() returns the most recent error generated
// in the AL state machine.
func GetError() uint32 {
	return uint32(C.alGetError())
}