@@ -0,0 +1,1135 @@
+package net.alcuria.umbracraft.sounds;%0A%0Aimport net.alcuria.umbracraft.Game;%0A%0Aimport com.badlogic.gdx.audio.Music;%0Aimport com.badlogic.gdx.audio.Sound;%0Aimport com.badlogic.gdx.math.MathUtils;%0A%0A/** Handles playing in-game sound effects and music.%0A * @author Andrew Keturi */%0Apublic class AudioManager %7B%0A%0A%09/** Volume of music */%0A%09private float bgmVol = 1;%0A%09/** Volume of sound effects */%0A%09private float sfxVol = 1;%0A%0A%09/** Plays background music */%0A%09public void music(String path) %7B%0A%09%09Game.assets().get(path, Music.class).play();%0A%09%7D%0A%0A%09/** Sets the volume of bgm%0A%09 * @param sfxVol the new volume, 0-1 where 0 is muted and 1 is max */%0A%09public void setMusicVolume(float bgmVol) %7B%0A%09%09this.bgmVol = MathUtils.clamp(bgmVol, 0, 1);%0A%09%7D%0A%0A%09/** Sets the volume of sound effects%0A%09 * @param sfxVol the new volume, 0-1 where 0 is muted and 1 is max */%0A%09public void setSoundVolume(float sfxVol) %7B%0A%09%09this.sfxVol = MathUtils.clamp(sfxVol, 0, 1);%0A%09%7D%0A%0A%09/** Plays a sound effect. Does no checking to ensure the sound is loaded.%0A%09 * @param path the path to the asset */%0A%09public void sound(String path) %7B%0A%09%09Game.assets().get(path, Sound.class).play(sfxVol);%0A%09%7D%0A%7D%0A

Add sound manager