Class KaraokeConfig

java.lang.Object
andesite.player.filter.KaraokeConfig
All Implemented Interfaces:
Config

public class KaraokeConfig
extends java.lang.Object
implements Config
  • Field Summary

    Fields inherited from interface andesite.player.filter.Config

    MINIMUM_FP_DIFF
  • Constructor Summary

    Constructors
    Constructor Description
    KaraokeConfig()  
  • Method Summary

    Modifier and Type Method Description
    com.sedmelluq.discord.lavaplayer.filter.AudioFilter create​(com.sedmelluq.discord.lavaplayer.format.AudioDataFormat format, com.sedmelluq.discord.lavaplayer.filter.FloatPcmAudioFilter output)
    Creates a new audio filter with the current settings.
    boolean enabled()
    Returns whether or not this filter should be enabled.
    JsonObject encode()
    Encodes the state of this configuration to send to clients.
    float filterBand()  
    float filterWidth()  
    float level()  
    float monoLevel()  
    java.lang.String name()
    Returns the name of this filter, to be used in FilterChainConfiguration.encode().
    void setFilterBand​(float filterBand)  
    void setFilterWidth​(float filterWidth)  
    void setLevel​(float level)  
    void setMonoLevel​(float monoLevel)  

    Methods inherited from class java.lang.Object

    clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • level

      public float level()
    • setLevel

      public void setLevel​(float level)
    • monoLevel

      public float monoLevel()
    • setMonoLevel

      public void setMonoLevel​(float monoLevel)
    • filterBand

      public float filterBand()
    • setFilterBand

      public void setFilterBand​(float filterBand)
    • filterWidth

      public float filterWidth()
    • setFilterWidth

      public void setFilterWidth​(float filterWidth)
    • name

      @Nonnull public java.lang.String name()
      Description copied from interface: Config
      Returns the name of this filter, to be used in FilterChainConfiguration.encode().
      Specified by:
      name in interface Config
      Returns:
      A non null string representing this filter.
    • enabled

      public boolean enabled()
      Description copied from interface: Config
      Returns whether or not this filter should be enabled.
      For filters that are enabled, but unavailable, this method should return false.
      Specified by:
      enabled in interface Config
      Returns:
      Whether or not the filter is enabled.
    • create

      @Nullable public com.sedmelluq.discord.lavaplayer.filter.AudioFilter create​(com.sedmelluq.discord.lavaplayer.format.AudioDataFormat format, com.sedmelluq.discord.lavaplayer.filter.FloatPcmAudioFilter output)
      Description copied from interface: Config
      Creates a new audio filter with the current settings.
      Specified by:
      create in interface Config
      Parameters:
      format - Format of the audio.
      output - Filter to write data to.
      Returns:
      A new audio filter.
    • encode

      Description copied from interface: Config
      Encodes the state of this configuration to send to clients.
      Specified by:
      encode in interface Config
      Returns:
      A json object containing the values of this configuration.