Example #1
0
func StopSources(sources ...Source) error {
	if len(sources) == 0 {
		return nil
	}
	C.alSourceStopv(C.ALsizei(C.int(len(sources))), (*C.ALuint)(unsafe.Pointer(&sources[0])))
	return GetError()
}
Example #2
0
func alSourceStopv(s []Source) {
	C.alSourceStopv(C.ALsizei(len(s)), (*C.ALuint)(unsafe.Pointer(&s[0])))
}
Example #3
0
File: source.go Project: nzlov/goal
func (source Source) Stopv(sources []Source) {
	C.alSourceStopv(C.ALsizei(len(sources)), (*C.ALuint)(&sources[0]))
}
Example #4
0
File: al.go Project: Miaque/mojo
// StopSources stops the sources.
func StopSources(source ...Source) {
	C.alSourceStopv(C.ALsizei(len(source)), (*C.ALuint)(unsafe.Pointer(&source[0])))
}