예제 #1
0
파일: core.go 프로젝트: pigulon/go-openal
func DeleteBuffers(buffers []*Buffer) {
	n := len(buffers)
	bufferIds := make([]C.ALuint, n)

	for i, v := range buffers {
		forgetBuffer(v)
		bufferIds[i] = v.handle
	}

	C.walDeleteBuffers(C.ALsizei(n), unsafe.Pointer(&bufferIds[0]))
	return
}
예제 #2
0
파일: buffer.go 프로젝트: 9uuso/go-openal
// DeleteBuffers() deletes the given buffers.
func DeleteBuffers(buffers []Buffer) {
	n := len(buffers)
	C.walDeleteBuffers(C.ALsizei(n), unsafe.Pointer(&buffers[0]))
}
예제 #3
0
// Delete() deletes the given buffers.
func (self Buffers) Delete() {
	n := len(self)
	C.walDeleteBuffers(C.ALsizei(n), unsafe.Pointer(&self[0]))
}