Function getStreamLatency


#include <RtAudio.h>

long getStreamLatency(void)


Returns the internal stream latency in sample frames.

The stream latency refers to delay in audio input and/or output caused by internal buffering by the audio system and/or hardware. For duplex streams, the returned value will represent the sum of the input and output latencies. If a stream is not open, an RtAudioError (type = INVALID_USE) will be thrown. If the API does not report latency, the return value will be zero.


Lines 881-881 in RtAudio.h. Line 599 in RtAudio.h.

inline long RtAudio :: getStreamLatency( void ) { return rtapi_->getStreamLatency(); }

Add Discussion as Guest

Log in