MCPcopy Create free account
hub / github.com/LabSound/LabSound / getStreamLatency

Method getStreamLatency

src/backends/RtAudio/RtAudio.cpp:474–485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474long RtApi ::getStreamLatency(void)
475{
476 verifyStream();
477
478 long totalLatency = 0;
479 if (stream_.mode == OUTPUT || stream_.mode == DUPLEX)
480 totalLatency = stream_.latency[0];
481 if (stream_.mode == INPUT || stream_.mode == DUPLEX)
482 totalLatency += stream_.latency[1];
483
484 return totalLatency;
485}
486
487double RtApi ::getStreamTime(void)
488{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected