Skip to content

feat: 支持 RAOP ALAC 音频发送路径#17

Open
ByteColtX wants to merge 1 commit into
mainfrom
codex/fix-10-alac-send-codec
Open

feat: 支持 RAOP ALAC 音频发送路径#17
ByteColtX wants to merge 1 commit into
mainfrom
codex/fix-10-alac-send-codec

Conversation

@ByteColtX
Copy link
Copy Markdown
Owner

@ByteColtX ByteColtX commented May 16, 2026

Closes #10.

变更内容

  • 新增 RAOP 发送 codec 模型与选择策略,支持 auto / pcm / alac
  • 当 receiver capability 包含 ALAC 且策略允许时,自动选择 ALAC;不支持 ALAC 时回退到 PCM/L16
  • 扩展 ANNOUNCE SDP 生成,按 codec 输出 ALAC 的 rtpmap / fmtp
  • 在 resample/downmix 之后接入 ALAC encoder,RaopAudioSink 按 codec 生成 RTP payload。
  • 保持 RTP sequence、timestamp、sync packet 仍以 PCM frame timeline 为基准。
  • play file / play capture 增加 --codec <auto|pcm|alac> 参数,允许用户强制使用 PCM 或请求 ALAC。

测试

  • cargo test
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all-features

说明

  • 现有 PCM/L16 路径保留为默认回退路径。
  • 本地没有可用真实 AirPlay receiver,因此未完成真实设备播放验证。

@ByteColtX ByteColtX changed the title feat: support RAOP ALAC send path feat: 支持 RAOP ALAC 音频发送路径 May 16, 2026
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/RAOP ALAC 音频发送路径

1 participant