Пример #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
	}
}
Пример #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
	}
}
Пример #3
0
func alIsBuffer(b Buffer) bool {
	return C.alIsBuffer(C.ALuint(b)) == C.AL_TRUE
}
Пример #4
0
func (object Object) IsBuffer() bool {
	return goBool(C.alIsBuffer(C.ALuint(object)))
}
Пример #5
0
func (buffer Buffer) IsBuffer() bool {
	return goBool(C.alIsBuffer(C.ALuint(buffer)))
}
Пример #6
0
Файл: al.go Проект: Miaque/mojo
// Valid returns true if the buffer exists and is valid.
func (b Buffer) Valid() bool {
	return C.alIsBuffer(C.ALuint(b)) == 1
}