Class Playback.VolumeControl

java.lang.Object
pi.resources.sound.Playback.VolumeControl
All Implemented Interfaces:
AutoCloseable
Enclosing class:
Playback

public class Playback.VolumeControl extends Object implements 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