Example #1
0
func DeleteSources(toDelete ...Source) error {
	if len(toDelete) == 0 {
		return nil
	}

	C.alDeleteSources(C.ALsizei(C.int(len(toDelete))), (*C.ALuint)(unsafe.Pointer(&toDelete[0])))
	return GetError()
}
Example #2
0
func alDeleteSources(s []Source) {
	C.alDeleteSources(C.ALsizei(len(s)), (*C.ALuint)(unsafe.Pointer(&s[0])))
}
Example #3
0
File: source.go Project: nzlov/goal
func DeleteSources(sources []Source) {
	if len(sources) > 0 {
		C.alDeleteSources(C.ALsizei(len(sources)), (*C.ALuint)(&sources[0]))
	}
}
Example #4
0
File: source.go Project: nzlov/goal
func (source Source) Delete() {
	b := C.ALuint(source)
	C.alDeleteSources(1, &b)
}
Example #5
0
File: al.go Project: Miaque/mojo
// DeleteSources deletes the sources.
func DeleteSources(source ...Source) {
	C.alDeleteSources(C.ALsizei(len(source)), (*C.ALuint)(unsafe.Pointer(&source[0])))
}
Example #6
0
func (source Source) Delete() error {
	C.alDeleteSources(C.ALsizei(C.int(1)), &source.source)
	return GetError()
}
Example #7
0
func destroySourceList() {
	close(sourceChannel)
	for i, _ := range sourceList {
		C.alDeleteSources(1, &sourceList[i].id)
	}
}