Пример #1
0
func (source Source) UnqueueBuffers(buffers ...Buffer) error {
	if len(buffers) == 0 {
		return nil
	}
	C.alSourceUnqueueBuffers(source.source, C.ALsizei(C.int(len(buffers))), (*C.ALuint)(unsafe.Pointer(&buffers[0])))
	return GetError()
}
Пример #2
0
func alSourceUnqueueBuffers(s Source, b []Buffer) {
	C.alSourceUnqueueBuffers(C.ALuint(s), C.ALsizei(1), (*C.ALuint)(unsafe.Pointer(&b[0])))
}
Пример #3
0
func (source Source) UnqueueBuffers(buffers []Buffer) {
	C.alSourceUnqueueBuffers(
		C.ALuint(source), C.ALsizei(len(buffers)), (*C.ALuint)(&buffers[0]))
}
Пример #4
0
func (source Source) UnqueueBuffer() Buffer {
	var b C.ALuint
	C.alSourceUnqueueBuffers(C.ALuint(source), 1, &b)
	return Buffer(b)
}
Пример #5
0
Файл: al.go Проект: Miaque/mojo
// UnqueueBuffers removes the specified buffers from the buffer queue.
func (s Source) UnqueueBuffers(buffers []Buffer) {
	C.alSourceUnqueueBuffers(C.ALuint(s), C.ALsizei(len(buffers)), (*C.ALuint)(unsafe.Pointer(&buffers[0])))
}