Class SoundPlayback.VolumeControl

java.lang.Object
de.gurkenlabs.litiengine.sound.SoundPlayback.VolumeControl
All Implemented Interfaces:
Tweenable, AutoCloseable
Enclosing class:
SoundPlayback

public class SoundPlayback.VolumeControl extends Object implements Tweenable, AutoCloseable
An object for controlling the volume of a SoundPlayback. Each distinct instance represents an independent factor contributing to its volume.
See Also:
  • 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.
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getTweenValues

      public float[] getTweenValues(TweenType tweenType)
      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 interface Tweenable
      Parameters:
      tweenType - The tween type of this interpolation, determining which values are modified.
      Returns:
      The array of current tween values.
    • setTweenValues

      public void setTweenValues(TweenType tweenType, float[] newValues)
      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 interface Tweenable
      Parameters:
      tweenType - The tween type of this interpolation, determining which values are modified.
      newValues - The new values determined by the tween equation.