Skip to content

Fix audio volume rolloff and some missing/incorrect sounds#1282

Open
TorutheRedFox wants to merge 1 commit intosmartcmd:mainfrom
TorutheRedFox:audio-volume-fix
Open

Fix audio volume rolloff and some missing/incorrect sounds#1282
TorutheRedFox wants to merge 1 commit intosmartcmd:mainfrom
TorutheRedFox:audio-volume-fix

Conversation

@TorutheRedFox
Copy link

@TorutheRedFox TorutheRedFox commented Mar 15, 2026

Description

Fixes issues with sound volume, incorrect explosion sound playing and portal sounds not playing at all.

Changes

Previous Behavior

People complained of sounds being too quiet or not playing at all

Root Cause

Sound rolloff was set up incorrectly by using the wrong algorithm (miniaudio's default isn't linear while Minecraft expects linear), and in the case of jukeboxes, the 3d parameters weren't set up at all.

New Behavior

Sound volumes have been corrected by trying to match early Java Edition's use of Paul Lamb's SoundSystem and the correct explosion sounds now play. All portal sounds now play as they should too.

Fix Implementation

The correct algorithm is explicitly specified when playing sounds using miniaudio, and 3D audio parameters were tweaked to ensure the correct rolloff and volumes (rolloff increased to 1.0 from 0,5, max volume reduced to 1.0 from 1.5 as compensation is no longer necessary, etc.). Explosion sounds were fixed by removing explode.ogg and portal sounds were fixed by making SoundEngine::PlayUI also search the base sound folder (Windows64Media\Sound\Minecraft) if it can't find the requested sound in the UI subfolder. The volume of PlayUI was also corrected according to Java Edition's behavior (multiply the volume by 0.25 after clamping it), making the portal sounds that use it not ear-piercingly loud.

Notes

Chest sounds are still quiet, though that was an intentional change on 4J's part because someone deemed it to be "much louder than other sounds".

AI Use Disclosure

No AI has been used to make this PR.

Related Issues

@TorutheRedFox
Copy link
Author

@TorutheRedFox TorutheRedFox changed the title Fix audio volumes and some missing/incorrect sounds Fix audio volume rolloff and some missing/incorrect sounds Mar 16, 2026
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.

[Bug] All sounds are super quiet except music and menu

1 participant