Expose hardware latency

未关闭
#1,436 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
45/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
rust

调研方向

Read the stream API and the StreamInstant/StreamTimestamp definitions mentioned in the issue, then inspect how backend hosts expose hardware information. Compare the JACK and WASAPI loopback/process-capture scenarios, since latency may be unavailable or inapplicable for those streams. The change is done when hardware latency is exposed at the stream level, with appropriate handling for sample-rate dependence and unsupported streams.

由索引模型根据 Issue 内容生成。

描述

API design

Low level hosts can retrieve this information from the hardware driver, but I suspect that some higher level hosts may not have access to this information. Further more, this property may be inapplicable in certain scenarios. E.g. a JACK graph may not involve any audio hardware, and a WASAPI loopback or process capture stream definitely doesn't.

Since hardware latency depends on sample rate, this should be exposed at the stream level, not device level.

Note that this has nothing to do with the delta between the two StreamInstants in StreamTimestamp, as that delta represents everything that happens before/after the hardware.

主要语言
Rust
星标
4k
派生
554
平均合并
1 天 3 小时
30 天内合并 PR
1

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

RustAudio/cpal 的其他 Issue

查看 RustAudio/cpal 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。