Package com.toxicrain.rainengine.sound
Class SoundSystem
java.lang.Object
com.toxicrain.rainengine.sound.SoundSystem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
cleanup()
void
static SoundInfo
Retrieve a sound by Resourcestatic SoundInfo
Retrieve a sound by string pathfloat
void
init()
static void
Loads all sounds from the /sound directory into ResourceManagerstatic SoundInfo
void
void
void
void
releaseSource
(int sourceId) void
setVolume
(float volume) void
stop()
void
stop
(boolean fadeOut, float fadeDuration)
-
Constructor Details
-
SoundSystem
public SoundSystem()
-
-
Method Details
-
initSounds
public static void initSounds()Loads all sounds from the /sound directory into ResourceManager -
getSound
Retrieve a sound by Resource -
getSound
Retrieve a sound by string path -
init
public void init() -
releaseSource
public void releaseSource(int sourceId) -
loadSound
-
play
-
play
-
play
-
stop
public void stop() -
stop
public void stop(boolean fadeOut, float fadeDuration) -
cleanup
-
cleanup
public void cleanup() -
setVolume
public void setVolume(float volume) -
getVolume
public float getVolume()
-