Remaster sounds to all be -30dBFS; remove per-object sound volume; honor config setting for volume adjustment

This commit is contained in:
Dave Smith committed 2019-03-26 21:48:04 -06:00
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);