// Info returns information about the Stream instance. func (s *Stream) Info() *StreamInfo { i := C.Pa_GetStreamInfo(s.paStream) if i == nil { return nil } return &StreamInfo{duration(i.inputLatency), duration(i.outputLatency), float64(i.sampleRate)} }
// GetStreamInfo function as declared in portaudio/portaudio.h:1034 func GetStreamInfo(stream *Stream) *StreamInfo { cstream, _ := (unsafe.Pointer)(unsafe.Pointer(stream)), cgoAllocsUnknown __ret := C.Pa_GetStreamInfo(cstream) __v := NewStreamInfoRef(unsafe.Pointer(__ret)) return __v }