|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectefficom.runningjoe.services.SoundManager
public class SoundManager
A service that manages the sound effects.
Method Summary | |
---|---|
void |
dispose()
Disposes the sound manager. |
static SoundManager |
getInstance()
|
void |
notifyEntryRemoved(RunningJoeSound key,
com.badlogic.gdx.audio.Sound value)
|
void |
play(RunningJoeSound sound)
Plays the specified sound. |
void |
setEnabled(boolean enabled)
Enables or disabled the sound. |
void |
setVolume(float volume)
Sets the sound volume which must be inside the range [0,1]. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static final SoundManager getInstance()
public void play(RunningJoeSound sound)
public void setVolume(float volume)
public void setEnabled(boolean enabled)
public void notifyEntryRemoved(RunningJoeSound key, com.badlogic.gdx.audio.Sound value)
notifyEntryRemoved
in interface LRUCache.CacheEntryRemovedListener<RunningJoeSound,com.badlogic.gdx.audio.Sound>
public void dispose()
dispose
in interface com.badlogic.gdx.utils.Disposable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |