コード例 #1
0
ファイル: audio.go プロジェクト: b1naryth1ef/allegro
func (s *SampleInstance) SetGain(val float32) bool {
	return bool(C.al_set_sample_instance_gain((*C.ALLEGRO_SAMPLE_INSTANCE)(unsafe.Pointer(s)), C.float(val)))
}
コード例 #2
0
ファイル: audio.go プロジェクト: beoran/algo
// Sets the gain of the sample instance.
func (self *SampleInstance) SetGain(val float32) bool {
	return cb2b(C.al_set_sample_instance_gain(self.handle, C.float(val)))
}