Clean
[esp.git] / src / net / encode / wurmesp / util / SoundUtils.java
CommitLineData
82327c1d 1package net.encode.wurmesp.util;
2
3import com.wurmonline.client.game.PlayerPosition;
4import com.wurmonline.client.renderer.cell.CellRenderable;
5import com.wurmonline.client.sound.FixedSoundSource;
6import com.wurmonline.client.sound.SoundSource;
7
8public 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