Package de.gurkenlabs.litiengine.sound
Class SoundPlayback.VolumeControl
java.lang.Object
de.gurkenlabs.litiengine.sound.SoundPlayback.VolumeControl
- All Implemented Interfaces:
Tweenable
- Enclosing class:
- SoundPlayback
public class SoundPlayback.VolumeControl
extends java.lang.Object
implements Tweenable
An object for controlling the volume of a
SoundPlayback
. Each distinct instance represents an independent factor contributing to its
volume.- See Also:
SoundPlayback.createVolumeControl()
Method Summary
Modifier and Type Method Description protected void
finalize()
Deprecated.float
get()
Gets the value of this volume control.float[]
getTweenValues(TweenType tweenType)
Gets one or many values from the target object associated to the given tween type.void
set(float value)
Sets the value of this volume control.void
setTweenValues(TweenType tweenType, float[] newValues)
This method is called in a Tween's update() method to set the new interpolated values.
Method Details
get
public float get()Gets the value of this volume control.- Returns:
- The value of this control.
set
public void set(float value)Sets the value of this volume control.- Parameters:
value
- The value to be set.
finalize
@Deprecated protected void finalize()Deprecated.- Overrides:
finalize
in classjava.lang.Object
getTweenValues
Description copied from interface:Tweenable
Gets one or many values from the target object associated to the given tween type. It is used by the Tween Engine to determine starting values.- Specified by:
getTweenValues
in interfaceTweenable
- Parameters:
tweenType
- The tween type of this interpolation, determining which values are modified.- Returns:
- The array of current tween values.
setTweenValues
Description copied from interface:Tweenable
This method is called in a Tween's update() method to set the new interpolated values.- Specified by:
setTweenValues
in interfaceTweenable
- Parameters:
tweenType
- The tween type of this interpolation, determining which values are modified.newValues
- The new values determined by the tween equation.