Example #1
0
func (a *Stream) GetLengthSecs() float64 {
	return float64(C.al_get_audio_stream_length_secs((*C.ALLEGRO_AUDIO_STREAM)(unsafe.Pointer(a))))
}
Example #2
0
File: audio.go Project: beoran/algo
// Gets the length of the audio stream, expressed in seconds.
func (self *AudioStream) LengthSeconds() (secs float64) {
	return float64(C.al_get_audio_stream_length_secs(self.handle))
}