Exemple #1
0
func PlaySources(sources ...Source) error {
	if len(sources) == 0 {
		return nil
	}
	C.alSourcePlayv(C.ALsizei(C.int(len(sources))), (*C.ALuint)(unsafe.Pointer(&sources[0])))
	return GetError()
}
Exemple #2
0
func alSourcePlayv(s []Source) {
	C.alSourcePlayv(C.ALsizei(len(s)), (*C.ALuint)(unsafe.Pointer(&s[0])))
}
Exemple #3
0
/*
 * Source vector based playback calls
 */
func (source Source) Playv(sources []Source) {
	C.alSourcePlayv(C.ALsizei(len(sources)), (*C.ALuint)(&sources[0]))
}
Exemple #4
0
// PlaySources plays the sources.
func PlaySources(source ...Source) {
	C.alSourcePlayv(C.ALsizei(len(source)), (*C.ALuint)(unsafe.Pointer(&source[0])))
}