Exemple #1
0
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()
}
Exemple #2
0
func (s *Sound) Destroy() {
	C.alDeleteBuffers(1, &s.buffer)
}
Exemple #3
0
func (buf Buffer) Delete() error {
	C.alDeleteBuffers(C.ALsizei(C.int(1)), &buf.buffer)
	return GetError()
}
Exemple #4
0
func alDeleteBuffers(b []Buffer) {
	C.alDeleteBuffers(C.ALsizei(len(b)), (*C.ALuint)(unsafe.Pointer(&b[0])))
}
Exemple #5
0
func DeleteBuffers(buffers []Buffer) {
	if len(buffers) > 0 {
		C.alDeleteBuffers(C.ALsizei(len(buffers)), (*C.ALuint)(&buffers[0]))
	}
}
Exemple #6
0
func (buffer Buffer) Delete() {
	b := C.ALuint(buffer)
	C.alDeleteBuffers(1, &b)
}