[GH-ISSUE #488] [audio] Explosions are about 6 dB louder than vanilla and clip (mass TNT) #137

Closed
opened 2026-11-02 15:36:41 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @ludovic111 on GitHub (Oct 16, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/488

What the player saw

Explosions are much louder in Horizon than in vanilla 26.3 and the sound clips hard. The player recorded the same test in both games: a /fill of 1,331 blocks (an 11x11x11 cube) set off in a LAN world, first in vanilla 26.3 ("Minecraft 26.3 - Multiplayer (LAN)"), then in Horizon.

Measured on the audio track of the clip (same recording, so the same capture level for both halves):

Part of the clip Game Mean level Samples at 0 dBFS (clipped)
0 to 10.5 s vanilla 26.3 -14.3 dBFS 1,410
10.5 to 23.4 s Horizon -8.0 dBFS 157,801

So Horizon is about 6 dB louder on average and clips about 100 times as often.

Platform: Linux (OS details not given). Version: a build from 2026-10-14.

Steps

  1. In a world, fill an area with TNT (for example /fill ~ ~ ~ ~10 ~10 ~10 minecraft:tnt) and ignite it.
  2. Do the same in vanilla 26.3 at the same Master/Blocks volume.
  3. Compare loudness.

What vanilla 26.3 does

ServerExplosion/Level.explode plays entity.generic.explode with volume 4.0 and pitch (1 + (r1 - r2) * 0.2) * 0.7. On the client, SoundEngine.calculateVolume clamps the instance volume to 0..1 before the category volume, and volume 4.0 only widens the linear attenuation distance to 64 blocks. OpenAL Soft then mixes the sources with its output limiter on, and the static channel pool caps how many sounds play at once (247).

Horizon's SoundEngine::calculate_volume (crates/horizon-client/src/sound_engine.rs) already clamps like vanilla, so the difference is likely further down: how many simultaneous explosion voices are mixed, the attenuation, or summing without a limiter in the audio backend. Not investigated yet.

Source

Reported on Discord by rdbt in #general (2026-10-14): "explosions are definitely louder than minecraft".
Clip (Discord CDN link, may expire): https://cdn.discordapp.com/attachments/1559227979559731353/1560006006455406742/Video_2026-10-14_20-06-10.mp4?ex=6ad31e8f&is=6ad1cd0f&hm=fcc5861239b960422165bb755270483ca495fa86a3b3d8dc82cec6be887d52bf&

Originally created by @ludovic111 on GitHub (Oct 16, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/488 ## What the player saw Explosions are much louder in Horizon than in vanilla 26.3 and the sound clips hard. The player recorded the same test in both games: a `/fill` of 1,331 blocks (an 11x11x11 cube) set off in a LAN world, first in vanilla 26.3 ("Minecraft 26.3 - Multiplayer (LAN)"), then in Horizon. Measured on the audio track of the clip (same recording, so the same capture level for both halves): | Part of the clip | Game | Mean level | Samples at 0 dBFS (clipped) | | --- | --- | ---: | ---: | | 0 to 10.5 s | vanilla 26.3 | -14.3 dBFS | 1,410 | | 10.5 to 23.4 s | Horizon | -8.0 dBFS | 157,801 | So Horizon is about 6 dB louder on average and clips about 100 times as often. Platform: Linux (OS details not given). Version: a build from 2026-10-14. ## Steps 1. In a world, fill an area with TNT (for example `/fill ~ ~ ~ ~10 ~10 ~10 minecraft:tnt`) and ignite it. 2. Do the same in vanilla 26.3 at the same Master/Blocks volume. 3. Compare loudness. ## What vanilla 26.3 does `ServerExplosion`/`Level.explode` plays `entity.generic.explode` with volume 4.0 and pitch `(1 + (r1 - r2) * 0.2) * 0.7`. On the client, `SoundEngine.calculateVolume` clamps the instance volume to 0..1 before the category volume, and volume 4.0 only widens the linear attenuation distance to 64 blocks. OpenAL Soft then mixes the sources with its output limiter on, and the static channel pool caps how many sounds play at once (247). Horizon's `SoundEngine::calculate_volume` (crates/horizon-client/src/sound_engine.rs) already clamps like vanilla, so the difference is likely further down: how many simultaneous explosion voices are mixed, the attenuation, or summing without a limiter in the audio backend. Not investigated yet. ## Source Reported on Discord by rdbt in #general (2026-10-14): "explosions are definitely louder than minecraft". Clip (Discord CDN link, may expire): https://cdn.discordapp.com/attachments/1559227979559731353/1560006006455406742/Video_2026-10-14_20-06-10.mp4?ex=6ad31e8f&is=6ad1cd0f&hm=fcc5861239b960422165bb755270483ca495fa86a3b3d8dc82cec6be887d52bf&
bsakaguchi 2026-11-02 15:36:41 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ludovic111 commented on GitHub (Oct 22, 2026):

🤖 Agent: fix in #1133. Horizon played every sound at full gain on both speakers; vanilla's OpenAL Soft pans stereo (0.5957 per side for a centred source) and releases its limiter over 0.2 s. Measured against vanilla's own OpenAL library: a single explosion now matches to 0.02 dB, the 1,331-TNT cube is within about 1 dB (was 2.6 dB louder), with fewer clipped samples than vanilla.

<!-- gh-comment-id:6330271848 --> @ludovic111 commented on GitHub (Oct 22, 2026): 🤖 Agent: fix in #1133. Horizon played every sound at full gain on both speakers; vanilla's OpenAL Soft pans stereo (0.5957 per side for a centred source) and releases its limiter over 0.2 s. Measured against vanilla's own OpenAL library: a single explosion now matches to 0.02 dB, the 1,331-TNT cube is within about 1 dB (was 2.6 dB louder), with fewer clipped samples than vanilla.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#137
No description provided.