Skip to content

fix: bound PCM prefetch with a configurable server buffer limit - #29

Merged
yichen11818 merged 4 commits into
yichen11818:mainfrom
nitonitori:feat/configurable-pcm-buffer
Nov 19, 2026
Merged

yichen11818 merged 4 commits into
yichen11818:mainfrom
nitonitori:feat/configurable-pcm-buffer

Conversation

@nitonitori

@nitonitori nitonitori commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

长曲目预解码需要有界背压,并允许管理员调整预缓冲时长。本 PR 在主分支现有 PcmBuffer 有界读取通道上增加配置,不重新引入额外 PCM 队列。

  • voice.pcm_buffer_seconds 默认 5 秒,整数范围 1–30;首次导入环境变量,已有数据库配置优先,保存暂存、应用重启 Voice。
  • 保留短音频 EOF、暂停/取消和逐帧顺序保证;补充最小/最大容量背压、600 秒和 4105 秒加速回归。实际 FFmpeg 长时测试单独保存为可选测试。
  • 复用现有严格整数校验,Windows 配置读取显式使用 UTF-8。
  • 已合入当前 main,解决播放架构冲突并包含已修复的后端 Playwright 镜像依赖;同步中英文 README、HOWTOSTART 和环境示例。

验证:Windows 后端回归运行 227 项(1 项环境相关跳过);前端、Rust 和 Docker 镜像构建见当前 Checks。本机 Rust 链接缺少 msvcrt.lib,Rust 验证在 Linux CI 执行。本次未重新运行可选的十分钟真实播放测试,未更改生产部署。

Closes #28.

@yichen11818
yichen11818 marked this pull request as ready for review November 19, 2026 14:05
@yichen11818
yichen11818 merged commit 4a03386 into yichen11818:main Nov 19, 2026
9 checks passed
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.

Bound decoded PCM prefetch and expose its server buffer limit

2 participants