Package org.collebol.audio
Class Sound.SoundBuilder
java.lang.Object
org.collebol.audio.Sound.SoundBuilder
- Enclosing class:
- Sound
The SoundBuilder class is used to construct
Sound objects with specific properties.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionid(int id) pitch(float pitch) refDistance(float refDistance) rollOffFactor(float factor) volume(float volume)
-
Constructor Details
-
SoundBuilder
public SoundBuilder()
-
-
Method Details
-
path
- Parameters:
path- the place where the sound file is located.- Returns:
- instance.
-
id
- Parameters:
id- unique id of the sound.- Returns:
- instance.
-
position
- Parameters:
position- position where the sound must play from.- Returns:
- instance.
-
volume
- Parameters:
volume- default volume of the source.- Returns:
- instance
-
pitch
- Parameters:
pitch- default pitch of the source.- Returns:
- instance
-
refDistance
- Parameters:
refDistance- default the distance where you can hear the sound at full volume.- Returns:
- instance
-
rollOffFactor
- Parameters:
factor- default float how fast the volume decreases.- Returns:
- instance
-