? AudioEnginePlus
专为现代 Minecraft 打造的终极音频优化引擎。
AudioEnginePlus 是一款高性能音效引擎,旨在彻底革新 Minecraft 的音频处理方式。它不仅仅是播放声音,而是通过智能管理来确保无卡顿、沉浸且高效的体验。
✨ 主要特性
? 性能优化
- 智能声音池: 高效复用声音实例,以最小化原生内存分配和 Java 垃圾回收(GC)的峰值波动。
- 音频去重: 智能合并同时同地播放的相同声音事件,减少噪音杂乱并降低 CPU 开销。
- PCM 缓存: 在后台线程解码音频并缓存数据,防止因大量声音同时启动时常见的“音频卡顿”现象。
? 高级声音管理
- 音频 LOD(细节层次): 根据玩家距离动态缩放声音质量和处理频率,确保关键声音清晰,而远处声音经过优化。
- 异步处理: 将繁重的音频计算和解码工作从主游戏线程中移开。
- 原生内存追踪: 对原生内存使用情况进行高级监控,以确保稳定性并防止崩溃。
? 兼容性与集成
- ModMenu & Cloth Config: 通过用户友好的配置界面轻松调整引擎的各个方面。
- Sound Physics Remastered: 内置兼容性,可与基于物理的音频模组无缝协同工作。
? 为什么选择 AudioEnginePlus?
Vanilla Minecraft 的音效引擎在处理复杂场景时可能会遇到困难——例如大规模突袭、繁忙的服务器或安装了大量高音频负载的模组。AudioEnginePlus 通过将现代游戏音频技术引入 Fabric 生态系,填补了这一空白。
? 安装说明
- 安装 Fabric Loader。
- 下载 AudioEnginePlus 并将其放入
mods文件夹。 - (可选但推荐)安装 ModMenu 和 Cloth Config 以自定义设置。
? 许可证
本项目采用 LGPL-3.0 License 许可。
由 Winterus 开发
? AudioEnginePlus
The ultimate audio optimization engine for modern Minecraft.
AudioEnginePlus is a high-performance sound engine designed to revolutionize how Minecraft handles audio. It doesn't just play sounds; it manages them intelligently to ensure a stutter-free, immersive, and performant experience.
✨ Key Features
? Performance Optimization
- Smart Sound Pooling: Efficiently reuses sound instances to minimize native memory allocation and Java Garbage Collection spikes.
- Audio Deduplication: Intelligently merges identical sound events playing at the same time and location, reducing noise clutter and CPU overhead.
- PCM Caching: Decodes audio off-thread and caches the data, preventing the common "audio-stutter" when many sounds start at once.
? Advanced Sound Management
- Audio LOD (Level of Detail): Dynamically scales sound quality and processing frequency based on the player's distance, ensuring critical sounds are crisp while distant ones are optimized.
- Async Processing: Moves heavy audio calculations and decoding away from the main game thread.
- Native Memory Tracking: Advanced monitoring of native memory usage to ensure stability and prevent crashes.
? Compatibility & Integration
- ModMenu & Cloth Config: Easily tweak every aspect of the engine through a user-friendly configuration screen.
- Sound Physics Remastered: Built-in compatibility to work seamlessly alongside physics-based audio mods.
? Why AudioEnginePlus?
Vanilla Minecraft's sound engine can struggle in complex scenarios—like massive raids, busy servers, or with many sound-heavy mods. AudioEnginePlus bridges this gap by introducing modern game audio techniques to the Fabric ecosystem.
? Installation
- Install the Fabric Loader.
- Download AudioEnginePlus and place it in your
modsfolder. - (Optional but Recommended) Install ModMenu and Cloth Config to customize your settings.
? License
This project is licensed under the LGPL-3.0 License.
Developed by Winterus
下载 AudioEnginePlus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AudioEnginePlus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AudioEnginePlus
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 AudioEnginePlus
v4.0 Alpha — 天气音效、遮挡优化与稳定性
✨ 新增功能
- 安全流式传输 —
MemoryAudioStream在缓冲区结束时循环 PCM,而不是返回null(避免 OpenAL 重载重叠) - 连续环境音绕过 —
AsyncStreamer.isContinuousAmbientStream()使雨声、天气和洞穴环境音保持在原版OggAudioStream上(这些路径不使用 Phase 5 PCM 缓存) - 遮挡 2.1 — 临时缓存 + 异步细化;以玩家为中心的射线检测(
phase4.playerCentricRaycasting,默认开启);通过OcclusionState/writeSmoothedGain平滑增益 - LOOP_FAR 优先级 — 远处环境/天气循环(>32 格)使用
SourcePriority.LOOP_FAR,共享maxAmbientSources预算 - 重载生成保护 —
SoundPreloader、AsyncStreamer和SoundReloadListener上的reloadGeneration,防止资源重载后写入仍在进行的预加载/解码数据 - OcclusionApi — 用于外部遮挡模组/提供者的
getOcclusionFromProvider()钩子 - Cloth Config 语言支持 —
en_us.json中为已弃用的asyncWorkerThreads添加工具提示
⚡ 性能
- PCM 重放 — 缓存流片段的无缝循环;短重复流减少冗余 OGG 解码
- 遮挡计时 — 当声源/监听器方块移动时,使过期的待处理 Future 失效;异步细化前同步回退;为玩家中心模式规范化缓存路径
- OcclusionCache — 保留基于计时的 TTL;临时条目减少“直到射线完成才静音”的间隙
- 智能池 — 延迟驱逐队列(
aep$deferredEvictions);getEffectiveCount()/ 待处理驱逐计数;带 0.01 格 epsilon 的位置跟踪 - 去重 — 保留贪婪质心聚类;天气路径被豁免,因此全局循环不会被合并/延迟
- LOD —
LodPcmGenerator中的 Lanczos 重采样器(抗锯齿)替换盒式滤波器;ByteBuffer.duplicate()上正确的原生字节序(修复远处生物 LOD 爆裂声) - 预加载 —
SoundPreloader中的直接内存余量检查和带时间戳的异步工作 - Phase 3 — 异步计时工作保持在渲染线程同步执行(每个声音约微秒级);配置中
asyncWorkerThreads标记为未使用
? 变更
- 更新:
gradle.properties/ 文档 — 发布行 3.0-alpha → 4.0-alpha - 更新:
SoundEngineMixinPhase4— 遮挡应用顺序;遮挡后的类别缩放;WEATHER 和相对声音跳过遮挡处理 - 更新:
SoundDeduplicator—weather添加到去重豁免模式(包括方块交互声音) - 更新:
SoundReloadListener— 协调缓存清理:PCM、会话静态、LOD、遮挡状态、去重/池、AsyncStreamer.reset() - 更新:
SoundPhysicsRemasteredCompat— 当存在 SPR 时运行时禁用遮挡(行为不变,检查更完善) - 与 3.0 相同:
StreamingBufferQueue仍未连接;SoundInstancePool仍被移除;Caffeine 仍然缺失
? 修复
- 重复的雨/天气层 — 移动或站立时听到第二遍雨声(PCM 流结束 → 重载重叠 + 监听器绑定循环的遮挡增益)
- 共享
OggAudioStream损坏 — 每个播放实例使用独立的MemoryAudioStream及独立游标(继承自 3.0;循环倒带完成了对可重复流的修复) - 远处声音的 LOD 爆裂声 —
LodPcmGenerator中重复 PCM 视图的字节序错误 - 移动后的过时遮挡 — 当声源/监听器方块改变时,取消待处理 Future 并刷新缓存
- 去重重放 —
MergedSoundInstance从未重新延迟;刷新时清除键计数 - 资源重载竞争条件 — 黑名单模式交换、原生缓冲区所有权以及放弃进行中的预加载
- 智能池双重注册 — 合并的声音仅通过
play()注入路径注册
⚠️ 已知限制(Alpha 版本)
StreamingBufferQueue— 已实现但未连接到SoundLoader;真正的边解码边播放管线是未来的工作- 天气 PCM 缓存 — 如果通过黑名单/配置边缘情况手动缓存,请优先使用原版路径;默认排除连续环境音
- 无自动化测试 — 重度农场/PvP 可能需要降低 Phase 1 中的
globalRayBudgetPerTick、dedupThreshold或类别限制 - Phase 5 静态路径 —
enableStaticCaching仍受限于staticCacheThresholdBytes;长流式环境音应保持在 OGG 上
? 从 3.0-alpha 升级
| 如果你之前有… | 在 4.0 中… |
|---|---|
| 雨/天气“幽灵”音频 | 默认修复(无需配置切换) |
| 远处生物 LOD 噪音 | 改进的重采样器 + 字节序修复 |
| 行走时遮挡波动 | 已减少;天气/相对循环被排除 |
相同的 phase5 / phase4 配置键 |
兼容;新增:playerCentricRaycasting |
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
缓冲的原始输入和线程化的事件轮询
模组
一个用于收集生物掉落物的多区块模组。
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
原版世界生成优化模组
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
查看物品与配方
评论 0
登录后参与评分
还没有评论,来抢沙发吧