Compatibility
Minecraft: Java Edition
1.21.1
1.20.1
Platforms
Supported environments
Client and server
Links
Creators
Details
Licensed MIT
Published last week
Updated 2 months ago
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.


