func (buf Buffer) IsValid() (bool, error) { val := C.alIsBuffer(buf.buffer) err := GetError() if val == 1 { return true, err } else { return false, err } }
func (source Source) IsValid() (bool, error) { val := C.alIsBuffer(source.source) err := GetError() if val == 1 { return true, err } else { return false, err } }
func alIsBuffer(b Buffer) bool { return C.alIsBuffer(C.ALuint(b)) == C.AL_TRUE }
func (object Object) IsBuffer() bool { return goBool(C.alIsBuffer(C.ALuint(object))) }
func (buffer Buffer) IsBuffer() bool { return goBool(C.alIsBuffer(C.ALuint(buffer))) }
// Valid returns true if the buffer exists and is valid. func (b Buffer) Valid() bool { return C.alIsBuffer(C.ALuint(b)) == 1 }