Example #1
0
func (buf Buffer) IsValid() (bool, error) {
	val := C.alIsBuffer(buf.buffer)
	err := GetError()
	if val == 1 {
		return true, err
	} else {
		return false, err
	}
}
Example #2
0
func (source Source) IsValid() (bool, error) {
	val := C.alIsBuffer(source.source)
	err := GetError()
	if val == 1 {
		return true, err
	} else {
		return false, err
	}
}
Example #3
0
func alIsBuffer(b Buffer) bool {
	return C.alIsBuffer(C.ALuint(b)) == C.AL_TRUE
}
Example #4
0
File: object.go Project: nzlov/goal
func (object Object) IsBuffer() bool {
	return goBool(C.alIsBuffer(C.ALuint(object)))
}
Example #5
0
File: buffer.go Project: nzlov/goal
func (buffer Buffer) IsBuffer() bool {
	return goBool(C.alIsBuffer(C.ALuint(buffer)))
}
Example #6
0
File: al.go Project: Miaque/mojo
// Valid returns true if the buffer exists and is valid.
func (b Buffer) Valid() bool {
	return C.alIsBuffer(C.ALuint(b)) == 1
}