コード例 #1
0
ファイル: audio.go プロジェクト: b1naryth1ef/allegro
func (s *SampleInstance) GetTime() float32 {
	return float32(C.al_get_sample_instance_time((*C.ALLEGRO_SAMPLE_INSTANCE)(unsafe.Pointer(s))))
}
コード例 #2
0
ファイル: audio.go プロジェクト: beoran/algo
// Returns the of the sample instance
func (self *SampleInstance) Time() float32 {
	return float32(C.al_get_sample_instance_time(self.handle))
}