Class ToFloatAudioFilter
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.filter.converter.ConverterAudioFilter
-
- com.sedmelluq.discord.lavaplayer.filter.converter.ToFloatAudioFilter
-
- All Implemented Interfaces:
AudioFilter,FloatPcmAudioFilter,ShortPcmAudioFilter,SplitShortPcmAudioFilter,UniversalPcmAudioFilter
public class ToFloatAudioFilter extends ConverterAudioFilter
Filter which takes in PCM data in any representation and outputs it as float PCM.
-
-
Field Summary
-
Fields inherited from class com.sedmelluq.discord.lavaplayer.filter.converter.ConverterAudioFilter
BUFFER_SIZE
-
-
Constructor Summary
Constructors Constructor Description ToFloatAudioFilter(FloatPcmAudioFilter downstream, int channelCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.converter.ConverterAudioFilter
close, floatToShort, flush, seekPerformed
-
-
-
-
Constructor Detail
-
ToFloatAudioFilter
public ToFloatAudioFilter(FloatPcmAudioFilter downstream, int channelCount)
- Parameters:
downstream- The float PCM filter to pass the output to.channelCount- Number of channels in the PCM data.
-
-
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).
-
-