コード例 #1
0
ファイル: audio.go プロジェクト: b1naryth1ef/allegro
func (a *Stream) GetPositionSecs() float64 {
	return float64(C.al_get_audio_stream_position_secs((*C.ALLEGRO_AUDIO_STREAM)(unsafe.Pointer(a))))
}
コード例 #2
0
ファイル: audio.go プロジェクト: beoran/algo
// Gets the position in the audio stream, expressed in seconds.
func (self *AudioStream) PositionSeconds() (secs float64) {
	return float64(C.al_get_audio_stream_position_secs(self.handle))
}