mirror of
https://github.com/Anuken/Mindustry.git
synced 2024-11-11 03:31:19 +03:00
files
This commit is contained in:
parent
89ee04c942
commit
6fa0ac56ac
BIN
core/assets/sounds/conveyor.ogg
Normal file
BIN
core/assets/sounds/conveyor.ogg
Normal file
Binary file not shown.
BIN
core/assets/sounds/machine.ogg
Executable file
BIN
core/assets/sounds/machine.ogg
Executable file
Binary file not shown.
BIN
core/assets/sounds/spray.ogg
Normal file
BIN
core/assets/sounds/spray.ogg
Normal file
Binary file not shown.
5
core/convert_sounds.sh
Executable file
5
core/convert_sounds.sh
Executable 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
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user