82327c1d |
1 | package net.encode.wurmesp.util; |
2 | |
3 | import com.wurmonline.client.game.PlayerPosition; |
4 | import com.wurmonline.client.renderer.cell.CellRenderable; |
5 | import com.wurmonline.client.sound.FixedSoundSource; |
6 | import com.wurmonline.client.sound.SoundSource; |
7 | |
8 | public class SoundUtils { |
9 | public static void playSound(String sound) { |
10 | PlayerPosition pos = CellRenderable.world.getPlayer().getPos(); |
11 | CellRenderable.world.getSoundEngine().play(sound, (SoundSource)new FixedSoundSource(pos.getX(), pos.getY(), 2.0f), 1.0f, 5.0f, 1.0f, false, false); |
12 | } |
13 | } |
14 | |