Package andesite.player.filter
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 inFilterChainConfiguration.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
-
KaraokeConfig
public KaraokeConfig()
-
-
Method Details
-
level
-
setLevel
-
monoLevel
-
setMonoLevel
-
filterBand
-
setFilterBand
-
filterWidth
-
setFilterWidth
-
name
Description copied from interface:Config
Returns the name of this filter, to be used inFilterChainConfiguration.encode()
. -
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. -
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. -
encode
Description copied from interface:Config
Encodes the state of this configuration to send to clients.
-