Class SoundConfiguration
java.lang.Object
de.gurkenlabs.litiengine.configuration.ConfigurationGroup
de.gurkenlabs.litiengine.configuration.SoundConfiguration
-
Nested Class Summary
Nested classes/interfaces inherited from class de.gurkenlabs.litiengine.configuration.ConfigurationGroup
ConfigurationGroup.ConfigurationChangedListener -
Method Summary
Modifier and TypeMethodDescriptionfloatGets the current music volume.floatGets the current sound volume.voidsetMusicVolume(float musicVolume) Sets the music volume.voidsetSoundVolume(float soundVolume) Sets the sound volume.Methods inherited from class de.gurkenlabs.litiengine.configuration.ConfigurationGroup
getPrefix, initializeByProperty, isDebug, onChanged, removeListener, set, setDebug, storeProperties
-
Method Details
-
getMusicVolume
public float getMusicVolume()Gets the current music volume.- Returns:
- the music volume.
-
getSoundVolume
public float getSoundVolume()Gets the current sound volume.- Returns:
- the sound volume.
-
setMusicVolume
public void setMusicVolume(float musicVolume) Sets the music volume.- Parameters:
musicVolume- the new music volume.
-
setSoundVolume
public void setSoundVolume(float soundVolume) Sets the sound volume.- Parameters:
soundVolume- the new sound volume.
-