SolarLiner/interflow

Report input/output latency

Open

#42 opened on Mar 19, 2025

View on GitHub
 (0 comments) (1 reaction) (0 assignees)Rust (4 forks)auto 404
apifeaturegood first issuehelp wanted

Repository metrics

Stars
 (64 stars)
PR merge metrics
 (PR metrics pending)

Description

Problem Statement

In order to give users the ability to do full latency compensation, it is crucial that we give them the reported input/output latencies, if provided by the driver.

This is especially important with #22 that will bring its own latency when resampling.

Proposed Solution

Add a latency: Option<Timestamp> to AudioInput and AudioOutput exposing the reported latency information

Alternative Solutions

  • Not reporting latency: having the information could be misleading as an accurate measurement, which I don't think it is on most platforms unless using pro audio with correct latency measurements.
  • Reporting latency another way (how?)

Checklist

  • I have searched for existing issues that may be similar
  • I have explained the feature's value proposition
  • I have provided concrete examples (not done; hopefully self-explanatory)

Contributor guide