Class CompositeAudioFilter
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.filter.CompositeAudioFilter
-
- All Implemented Interfaces:
AudioFilter,FloatPcmAudioFilter,ShortPcmAudioFilter,SplitShortPcmAudioFilter,UniversalPcmAudioFilter
- Direct Known Subclasses:
AudioPipeline,UserProvidedAudioFilters
public abstract class CompositeAudioFilter extends java.lang.Object implements UniversalPcmAudioFilter
An audio filter which may consist of a number of other filters.
-
-
Constructor Summary
Constructors Constructor Description CompositeAudioFilter()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidclose()Free all resources.voidflush()Flush everything to output.protected abstract java.util.List<AudioFilter>getFilters()voidseekPerformed(long requestedTime, long providedTime)Indicates that the next samples are not a continuation from the previous ones and gives the timecode for the next incoming sample.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.sedmelluq.discord.lavaplayer.filter.FloatPcmAudioFilter
process
-
Methods inherited from interface com.sedmelluq.discord.lavaplayer.filter.ShortPcmAudioFilter
process, process
-
Methods inherited from interface com.sedmelluq.discord.lavaplayer.filter.SplitShortPcmAudioFilter
process
-
-
-
-
Method Detail
-
seekPerformed
public void seekPerformed(long requestedTime, long providedTime)Description copied from interface:AudioFilterIndicates that the next samples are not a continuation from the previous ones and gives the timecode for the next incoming sample.- Specified by:
seekPerformedin interfaceAudioFilter- Parameters:
requestedTime- Timecode in milliseconds to which the seek was requested toprovidedTime- Timecode in milliseconds to which the seek was actually performed to
-
flush
public void flush() throws java.lang.InterruptedExceptionDescription copied from interface:AudioFilterFlush everything to output.- Specified by:
flushin interfaceAudioFilter- Throws:
java.lang.InterruptedException- When interrupted externally (or for seek/stop).
-
close
public void close()
Description copied from interface:AudioFilterFree all resources. No more input is expected.- Specified by:
closein interfaceAudioFilter
-
getFilters
protected abstract java.util.List<AudioFilter> getFilters()
-
-