Esempio n. 1
0
func GetError() error {
	if errVal := C.alGetError(); errVal == C.AL_NO_ERROR {
		return nil
	} else {
		return Error{errVal}
	}
}
Esempio n. 2
0
File: al.go Progetto: nzlov/goal
/*
 * Error support.
 * Obtain the most recent error generated in the AL state machine.
 */
func GetError() ALenum {
	return ALenum(C.alGetError())
}
Esempio n. 3
0
func alGetError() int32 {
	return int32(C.alGetError())
}
Esempio n. 4
0
// GetError() returns the most recent error generated
// in the AL state machine.
func GetError() uint32 {
	return uint32(C.alGetError())
}