Class AudioPlayerOptions


  • public class AudioPlayerOptions
    extends java.lang.Object
    Mutable options of an audio player which may be applied in real-time.
    • Constructor Summary

      Constructors 
      Constructor Description
      AudioPlayerOptions()
      New instance of player options.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • volumeLevel

        public final java.util.concurrent.atomic.AtomicInteger volumeLevel
        Volume level of the audio, see AudioPlayer.setVolume(int). Applied in real-time.
      • filterFactory

        public final java.util.concurrent.atomic.AtomicReference<PcmFilterFactory> filterFactory
        Current PCM filter factory. Applied in real-time.
      • frameBufferDuration

        public final java.util.concurrent.atomic.AtomicReference<java.lang.Integer> frameBufferDuration
        Current frame buffer size. If not set, the global default is used. Changing this only affects the next track that is started.
    • Constructor Detail

      • AudioPlayerOptions

        public AudioPlayerOptions()
        New instance of player options. By default, frame buffer duration is not set, hence taken from global settings.