Skip to content

feat: 增加可配置 RAOP 延迟缓冲#16

Open
ByteColtX wants to merge 3 commits into
mainfrom
codex/issue-11-latency-buffer
Open

feat: 增加可配置 RAOP 延迟缓冲#16
ByteColtX wants to merge 3 commits into
mainfrom
codex/issue-11-latency-buffer

Conversation

@ByteColtX
Copy link
Copy Markdown
Owner

@ByteColtX ByteColtX commented May 16, 2026

变更摘要

  • 新增 RAOP latency / buffer profile,默认 safe 保持原有 250ms 行为。
  • 支持 safenormallowrealtime 预设。
  • 支持高级 custom:--buffer-ms <ms> 控制 startup/min-latency,--packet-frames <frames> 控制 RAOP RTP 每包帧数。两者可组合,例如 --buffer-ms 25 --packet-frames 128
  • 将请求的 buffer / packet 配置从 CLI 贯通到播放会话配置,并用于 SDP a=min-latency、RTP 初始 timestamp offset 和实际 RTP payload 切包。
  • 播放日志增加 requested buffer ms / frames 以及 latency profile,便于排查 receiver 兼容性。
  • realtime 使用 50ms startup buffer,并切换到 128 frames/packet,降低 packetization delay:44.1kHz 下单包约 2.9ms,明显低于默认 352 frames/packet 的约 8ms。
  • 增加 profile 换算、CLI 解析、SDP min-latency、custom 0ms buffer、timestamp offset、realtime packet size、resampler/sink packet size、高级 custom 参数组合等测试覆盖。

Closes #11

本地验证

cargo fmt --all -- --check
cargo clippy --all-targets --all-features -- -D warnings
cargo test

@ByteColtX ByteColtX changed the title feat: add configurable RAOP latency buffer feat: 增加可配置 RAOP 延迟缓冲 May 16, 2026
@ByteColtX ByteColtX force-pushed the codex/issue-11-latency-buffer branch from 1cb96b5 to d23d7d6 Compare May 21, 2026 15:40
@ByteColtX ByteColtX force-pushed the codex/issue-11-latency-buffer branch from d23d7d6 to c5ac45b Compare May 21, 2026 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: 增加可配置 AirPlay buffer / 低延迟模式

1 participant