Example #1
0
// Time returns the current time in seconds for a lifespan of a stream.
// Starting and stopping the stream does not affect the passage of time.
func (s *Stream) Time() time.Duration {
	return duration(C.Pa_GetStreamTime(s.paStream))
}
Example #2
0
// GetStreamTime function as declared in portaudio/portaudio.h:1052
func GetStreamTime(stream *Stream) Time {
	cstream, _ := (unsafe.Pointer)(unsafe.Pointer(stream)), cgoAllocsUnknown
	__ret := C.Pa_GetStreamTime(cstream)
	__v := (Time)(__ret)
	return __v
}