Class UserProvidedAudioFilters
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.filter.CompositeAudioFilter
-
- com.sedmelluq.discord.lavaplayer.filter.UserProvidedAudioFilters
-
- All Implemented Interfaces:
AudioFilter,FloatPcmAudioFilter,ShortPcmAudioFilter,SplitShortPcmAudioFilter,UniversalPcmAudioFilter
public class UserProvidedAudioFilters extends CompositeAudioFilter
An composite audio filter for filters provided by aPcmFilterFactory. Automatically rebuilds the chain whenever the filter factory is changed.
-
-
Constructor Summary
Constructors Constructor Description UserProvidedAudioFilters(AudioProcessingContext context, UniversalPcmAudioFilter nextFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<AudioFilter>getFilters()voidprocess(float[][] input, int offset, int length)voidprocess(short[][] input, int offset, int length)voidprocess(short[] input, int offset, int length)voidprocess(java.nio.ShortBuffer buffer)-
Methods inherited from class com.sedmelluq.discord.lavaplayer.filter.CompositeAudioFilter
close, flush, seekPerformed
-
-
-
-
Constructor Detail
-
UserProvidedAudioFilters
public UserProvidedAudioFilters(AudioProcessingContext context, UniversalPcmAudioFilter nextFilter)
- Parameters:
context- Configuration and output information for processingnextFilter- The next filter that should be processed after this one.
-
-
Method Detail
-
getFilters
protected java.util.List<AudioFilter> getFilters()
- Specified by:
getFiltersin classCompositeAudioFilter
-
process
public void process(float[][] input, int offset, int length) throws java.lang.InterruptedException- Parameters:
input- An array of samples for each channeloffset- Offset in the arrays to start atlength- Length of the target sequence in arrays- Throws:
java.lang.InterruptedException- When interrupted externally (or for seek/stop).
-
process
public void process(short[] input, int offset, int length) throws java.lang.InterruptedException- Parameters:
input- Array of samplesoffset- Offset in the arraylength- Length of the sequence in the array- Throws:
java.lang.InterruptedException- When interrupted externally (or for seek/stop).
-
process
public void process(java.nio.ShortBuffer buffer) throws java.lang.InterruptedException- Parameters:
buffer- The buffer of samples- Throws:
java.lang.InterruptedException- When interrupted externally (or for seek/stop).
-
process
public void process(short[][] input, int offset, int length) throws java.lang.InterruptedException- Parameters:
input- An array of samples for each channeloffset- Offset in the arraylength- Length of the sequence in the array- Throws:
java.lang.InterruptedException- When interrupted externally (or for seek/stop).
-
-