Example #1
0
func (v *Voice) AttachSampleInstance(spl *SampleInstance) bool {
	return bool(C.al_attach_sample_instance_to_voice((*C.ALLEGRO_SAMPLE_INSTANCE)(unsafe.Pointer(spl)), (*C.ALLEGRO_VOICE)(unsafe.Pointer(v))))
}
Example #2
0
File: audio.go Project: beoran/algo
// Attaches the sample instance to the given voice.
func (stream *SampleInstance) AttachToVoice(voice *Voice) bool {
	return cb2b(C.al_attach_sample_instance_to_voice(stream.handle, voice.handle))
}