Package org.collebol.engine.audio
Class SoundPlayer.ModifySound
java.lang.Object
org.collebol.engine.audio.Sound
org.collebol.engine.audio.SoundPlayer.ModifySound
- Enclosing class:
SoundPlayer
The ModifySound class is used to modify sound properties before playing.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.collebol.engine.audio.Sound
Sound.SoundBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpitch(float pitch) refDistance(float distance) rollOffFactor(float factor) volume(float volume) Methods inherited from class org.collebol.engine.audio.Sound
getId, getPath, getPitch, getPosition, getRefDistance, getRollOffFactor, getSource, getVolume, setPitch, setPosition, setRefDistance, setRollOffFactor, setVolume
-
Constructor Details
-
ModifySound
-
-
Method Details
-
volume
- Parameters:
volume- modified volume of the source.- Returns:
- instance
-
pitch
- Parameters:
pitch- modified pitch of the source.- Returns:
- instance
-
refDistance
- Parameters:
distance- modified max distance where you can hear the source.- Returns:
- instance
-
rollOffFactor
- Parameters:
factor- modified float how fast the volume decreases.- Returns:
- instance