Class EqualizerFactory
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.filter.equalizer.EqualizerConfiguration
-
- com.sedmelluq.discord.lavaplayer.filter.equalizer.EqualizerFactory
-
- All Implemented Interfaces:
PcmFilterFactory
public class EqualizerFactory extends EqualizerConfiguration implements PcmFilterFactory
PCM filter factory which creates a singleEqualizerfilter for every track. Useful in case the equalizer is the only custom filter used.
-
-
Field Summary
-
Fields inherited from class com.sedmelluq.discord.lavaplayer.filter.equalizer.EqualizerConfiguration
bandMultipliers
-
-
Constructor Summary
Constructors Constructor Description EqualizerFactory()Creates a new instance no gains applied initially.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<AudioFilter>buildChain(AudioTrack track, AudioDataFormat format, UniversalPcmAudioFilter output)Builds a filter chain for processing a track.-
Methods inherited from class com.sedmelluq.discord.lavaplayer.filter.equalizer.EqualizerConfiguration
getGain, setGain
-
-
-
-
Method Detail
-
buildChain
public java.util.List<AudioFilter> buildChain(AudioTrack track, AudioDataFormat format, UniversalPcmAudioFilter output)
Description copied from interface:PcmFilterFactoryBuilds a filter chain for processing a track. Note that this may be called several times during the playback of a single track. All filters should send the output from the filter either to the next filter in the list, or to the output filter if it is the last one in the list. Only the process and flush methods should call the next filter, all other methods are called individually for each filter anyway.- Specified by:
buildChainin interfacePcmFilterFactory- Parameters:
track- The track that this chain is built for.format- The output format of the track. At the point where these filters are called, the number of channels and the sample rate already matches that of the output format.output- The filter that the last filter in this chain should send its data to.- Returns:
- The list of filters in the built chain. May be empty, but not
null.
-
-