1
0
mirror of https://github.com/Anuken/Mindustry.git synced 2024-11-11 03:31:19 +03:00
This commit is contained in:
Anuken 2019-08-15 13:33:23 -04:00
parent 89ee04c942
commit 6fa0ac56ac
5 changed files with 5 additions and 2 deletions

Binary file not shown.

BIN
core/assets/sounds/machine.ogg Executable file

Binary file not shown.

Binary file not shown.

5
core/convert_sounds.sh Executable file
View File

@ -0,0 +1,5 @@
#convert from stereo to mono
for i in assets/sounds/*.ogg; do
echo $i
ffmpeg -i "$i" -y -ac 1 "$i"
done

View File

@ -31,8 +31,6 @@ public class LoopControl{
boolean play = data.curVolume > 0.01f;
float pan = Mathf.isZero(data.total, 0.0001f) ? 0f : sound.calcPan(data.sum.x / data.total, data.sum.y / data.total);
//Log.info(pan);
//TODO calc pan
if(data.soundID <= 0){
if(play){
data.soundID = sound.loop(data.curVolume, 1f, pan);