示例#1
0
func (source Source) QueueBuffers(buffers ...Buffer) error {
	if len(buffers) == 0 {
		return nil
	}
	C.alSourceQueueBuffers(source.source, C.ALsizei(C.int(len(buffers))), (*C.ALuint)(unsafe.Pointer(&buffers[0])))
	return GetError()
}
示例#2
0
文件: al_pc.go 项目: tanema/amore
func alSourceQueueBuffers(s Source, b []Buffer) {
	C.alSourceQueueBuffers(C.ALuint(s), C.ALsizei(len(b)), (*C.ALuint)(unsafe.Pointer(&b[0])))
}
示例#3
0
文件: source.go 项目: nzlov/goal
func (source Source) QueueBuffers(buffers []Buffer) {
	C.alSourceQueueBuffers(
		C.ALuint(source), C.ALsizei(len(buffers)), (*C.ALuint)(&buffers[0]))
}
示例#4
0
文件: source.go 项目: nzlov/goal
/*
 * Source Queuing
 */
func (source Source) QueueBuffer(buffer Buffer) {
	C.alSourceQueueBuffers(C.ALuint(source), 1, (*C.ALuint)(&buffer))
}
示例#5
0
文件: al.go 项目: Miaque/mojo
// QueueBuffers adds the buffers to the buffer queue.
func (s Source) QueueBuffers(buffers []Buffer) {
	C.alSourceQueueBuffers(C.ALuint(s), C.ALsizei(len(buffers)), (*C.ALuint)(unsafe.Pointer(&buffers[0])))
}