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() }
func alDeleteSources(s []Source) { C.alDeleteSources(C.ALsizei(len(s)), (*C.ALuint)(unsafe.Pointer(&s[0]))) }
func DeleteSources(sources []Source) { if len(sources) > 0 { C.alDeleteSources(C.ALsizei(len(sources)), (*C.ALuint)(&sources[0])) } }
func (source Source) Delete() { b := C.ALuint(source) C.alDeleteSources(1, &b) }
// DeleteSources deletes the sources. func DeleteSources(source ...Source) { C.alDeleteSources(C.ALsizei(len(source)), (*C.ALuint)(unsafe.Pointer(&source[0]))) }
func (source Source) Delete() error { C.alDeleteSources(C.ALsizei(C.int(1)), &source.source) return GetError() }
func destroySourceList() { close(sourceChannel) for i, _ := range sourceList { C.alDeleteSources(1, &sourceList[i].id) } }