Class AudioPipeline
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.filter.CompositeAudioFilter
-
- com.sedmelluq.discord.lavaplayer.filter.AudioPipeline
-
- All Implemented Interfaces:
AudioFilter,FloatPcmAudioFilter,ShortPcmAudioFilter,SplitShortPcmAudioFilter,UniversalPcmAudioFilter
public class AudioPipeline extends CompositeAudioFilter
Represents an audio pipeline (top-level audio filter chain).
-
-
Constructor Summary
Constructors Constructor Description AudioPipeline(AudioFilterChain chain)
-
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
-
AudioPipeline
public AudioPipeline(AudioFilterChain chain)
- Parameters:
chain- The top-level filter chain.
-
-
Method Detail
-
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).
-
getFilters
protected java.util.List<AudioFilter> getFilters()
- Specified by:
getFiltersin classCompositeAudioFilter
-
-