CC Audio Expand
作者:huali12381
CC Audio Expand adds high-quality PCM audio playback support to ComputerCraft: Tweaked's speaker peripheral, solving audio synchronization and playback smoothness issues in the vanilla implementation.
介绍
中文介绍正在准备中,下面暂时显示原文。
CC Audio Expand adds high-quality PCM audio playback support to ComputerCraft: Tweaked’s speaker peripheral, solving audio synchronization and playback smoothness issues in the vanilla implementation.
Core Features
Multiple Format Support
- PCM_S16LE (16-bit signed little-endian)
- PCM_U8 (8-bit unsigned)
- PCM_S8 (8-bit signed)
Intelligent Audio Synchronization
- Timestamp-based synchronization: Each audio packet carries a server-side send timestamp
- Automatic stale data skipping: Client detects and skips audio packets that have been queued for more than 200ms
- Fast recovery: Automatically catches up to server playback progress after lag
Anti-Lag Optimization
- Improved pump strategy: More proactive audio engine wake-up
- Persistent keep-alive mechanism: Reduces “~1 second audio reception pauses”
- Smart buffer management: Dynamically adjusts pump count based on queue status
Problems Solved
This mod references and solves upstream CC: Tweaked issues:
- Issue #2120 – Client-server audio desync When the client experiences lag or volume is set to 0, playback resumes with old queued audio, causing severe desynchronization with the server.
- PR #2412 – Failed fix attempt This PR attempted to solve the problem using sample counting but was rejected by maintainers, who required “must use time, not sample count”. This mod adopts the correct timestamp-based approach.
常见问题
CC Audio Expand 支持哪些 Minecraft 版本?
CC Audio Expand 支持 Minecraft Java 版 1.20.1–1.21.1,共 2 个版本,可用的加载器:Forge / NeoForge。下载时注意选择和你游戏版本一致的文件。
CC Audio Expand 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Forge / NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。运行环境:客户端和服务端都要装。
评论
登录后评论和评分