mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Remaster sounds to all be -30dBFS; remove per-object sound volume; honor config setting for volume adjustment
This commit is contained in:
1 parent
5dd3cf3bbd
commit
a392514e16
39 files changed
+9
-40
No files matched your search
@@ -9,6 +9,7 @@ import javax.annotation.Nullable;
|
||||
import mekanism.common.Upgrade;
|
||||
import mekanism.common.base.IUpgradeTile;
|
||||
import mekanism.common.config.MekanismConfig;
|
||||
import mekanism.common.config.MekanismConfig.client;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.audio.ISound;
|
||||
import net.minecraft.client.audio.ITickableSound;
|
||||
@@ -84,7 +85,8 @@ public class SoundHandler {
|
||||
ISound s = soundMap.get(pos.toLong());
|
||||
if (s == null || !Minecraft.getMinecraft().getSoundHandler().isSoundPlaying(s)) {
|
||||
// No sound playing, start one up - we assume that tile sounds will play until explicitly stopped
|
||||
s = new PositionedSoundRecord(soundLoc, SoundCategory.BLOCKS, volume, 1.0f,
|
||||
s = new PositionedSoundRecord(soundLoc, SoundCategory.BLOCKS,
|
||||
volume * client.baseSoundVolume, 1.0f,
|
||||
true, 0, ISound.AttenuationType.LINEAR,
|
||||
pos.getX() + 0.5f, pos.getY() + 0.5f, pos.getZ() + 0.5f);
|
||||
|
||||
|
||||
Reference in new issue
Block a user