Example #1
0
func (s *SampleInstance) SetSample(data *Sample) bool {
	return bool(C.al_set_sample((*C.ALLEGRO_SAMPLE_INSTANCE)(unsafe.Pointer(s)), (*C.ALLEGRO_SAMPLE)(unsafe.Pointer(data))))
}
Example #2
0
File: audio.go Project: beoran/algo
// Sets the sample data to use for the sample instance
func (self *SampleInstance) SetSample(val *Sample) bool {
	return cb2b(C.al_set_sample(self.handle, val.handle))
}