func DeleteBuffers(toDelete ...Buffer) error { if len(toDelete) == 0 { return nil } C.alDeleteBuffers(C.ALsizei(C.int(len(toDelete))), (*C.ALuint)(unsafe.Pointer(&toDelete[0]))) return GetError() }
func (s *Sound) Destroy() { C.alDeleteBuffers(1, &s.buffer) }
func (buf Buffer) Delete() error { C.alDeleteBuffers(C.ALsizei(C.int(1)), &buf.buffer) return GetError() }
func alDeleteBuffers(b []Buffer) { C.alDeleteBuffers(C.ALsizei(len(b)), (*C.ALuint)(unsafe.Pointer(&b[0]))) }
func DeleteBuffers(buffers []Buffer) { if len(buffers) > 0 { C.alDeleteBuffers(C.ALsizei(len(buffers)), (*C.ALuint)(&buffers[0])) } }
func (buffer Buffer) Delete() { b := C.ALuint(buffer) C.alDeleteBuffers(1, &b) }