v0.4.22: route video audio through Players sound category
Some checks failed
build / build (push) Has been cancelled
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user