Пример #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))))
}
Пример #2
0
// 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))
}