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 TypeMethodDescriptionfloatfloatGets the sound volume.voidsetMusicVolume(float musicVolume) 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() -
getSoundVolume
public float getSoundVolume()Gets the sound volume.- Returns:
- the sound volume
-
setMusicVolume
public void setMusicVolume(float musicVolume) -
setSoundVolume
public void setSoundVolume(float soundVolume) Sets the sound volume.- Parameters:
soundVolume- the new sound volume
-