aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTec <daniel112092@gmail.com>2020-06-14 09:12:55 +0200
committerTec <daniel112092@gmail.com>2020-06-14 09:12:55 +0200
commit028dd5ee21c8b1d4766ccc6f35dedcb81ca2408a (patch)
tree64b707c771f11b6b3906c59947f3869fdfa2d76e
parent12d5080675762c4ce760f371673a2af37d6476ac (diff)
downloadGT5-Unofficial-028dd5ee21c8b1d4766ccc6f35dedcb81ca2408a.tar.gz
GT5-Unofficial-028dd5ee21c8b1d4766ccc6f35dedcb81ca2408a.tar.bz2
GT5-Unofficial-028dd5ee21c8b1d4766ccc6f35dedcb81ca2408a.zip
Fix sound loops
-rw-r--r--src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/SoundLoop.java9
-rw-r--r--src/main/resources/assets/tectech/sounds/fx_lo_freq.oggbin14802 -> 29373 bytes
-rw-r--r--src/main/resources/assets/tectech/sounds/fx_mid_freq.oggbin15252 -> 26378 bytes
3 files changed, 4 insertions, 5 deletions
diff --git a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/SoundLoop.java b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/SoundLoop.java
index 338af1626e..e8e1a7eb27 100644
--- a/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/SoundLoop.java
+++ b/src/main/java/com/github/technus/tectech/thing/metaTileEntity/multi/base/SoundLoop.java
@@ -25,7 +25,7 @@ public class SoundLoop extends MovingSound{
zPosF=base.getZCoord();
worldID=base.getWorld().provider.dimensionId;
repeat=true;
- volume=0f;
+ volume= 0.0625f;
}
@Override
@@ -34,14 +34,13 @@ public class SoundLoop extends MovingSound{
return;
}
if(fadeMe) {
- volume-=0.05f;
- if(volume<0){
+ volume-=0.0625f;
+ if(volume<=0){
volume=0;
- }else if(volume==0){
donePlaying=true;
}
}else if(volume<1) {
- volume += 0.05f;
+ volume += 0.0625f;
}
World world=Minecraft.getMinecraft().thePlayer.worldObj;
donePlaying=world.provider.dimensionId!=worldID ||
diff --git a/src/main/resources/assets/tectech/sounds/fx_lo_freq.ogg b/src/main/resources/assets/tectech/sounds/fx_lo_freq.ogg
index 8eab2d92e2..f02581ae56 100644
--- a/src/main/resources/assets/tectech/sounds/fx_lo_freq.ogg
+++ b/src/main/resources/assets/tectech/sounds/fx_lo_freq.ogg
Binary files differ
diff --git a/src/main/resources/assets/tectech/sounds/fx_mid_freq.ogg b/src/main/resources/assets/tectech/sounds/fx_mid_freq.ogg
index b16d1297f4..10ac371e19 100644
--- a/src/main/resources/assets/tectech/sounds/fx_mid_freq.ogg
+++ b/src/main/resources/assets/tectech/sounds/fx_mid_freq.ogg
Binary files differ