v0.4.22: route video audio through Players sound category
Some checks failed
build / build (push) Has been cancelled

Previously the per-anchor audio gain was just volume × distance attenuation,
which ignored Minecraft's sound options sliders entirely — Master and Players
both had no effect on video audio. Now updateDistanceGains multiplies in
options.getSoundSourceVolume(MASTER) × getSoundSourceVolume(PLAYERS) to
match vanilla SoundEngine.calculateVolume, so the Players slider attenuates
video audio like other player sounds and Master gates everything.

Recomputed at the same 20Hz tick as distance gain — slider drags take
effect within ~50ms with no extra plumbing.
This commit is contained in:
tkrmagid
2026-05-16 23:46:07 +09:00
parent 41c7c48825
commit 05aace294e
2 changed files with 12 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ org.gradle.configuration-cache=false
# Mod
mod_id=video_player
mod_version=0.4.21
mod_version=0.4.22
maven_group=com.ejclaw.videoplayer
archives_base_name=video_player