public class SoundManager
extends java.lang.Object
Constructor and Description |
---|
SoundManager() |
Modifier and Type | Method and Description |
---|---|
void |
play(com.badlogic.gdx.audio.Sound sound)
Plays a sound instance at maximum volume relative to the sound manager's volume.
|
void |
play(com.badlogic.gdx.audio.Sound sound,
float volume)
Plays a sound instance at a custom volume.
|
void |
setEnabled(boolean enabled)
Set whether the music is enabled or not.
|
void |
setVolume(float volume)
Set the volume of the manager.
|
public void play(com.badlogic.gdx.audio.Sound sound)
public void play(com.badlogic.gdx.audio.Sound sound, float volume)
public void setVolume(float volume)
public void setEnabled(boolean enabled)