Class AdtsStreamProvider
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.container.adts.AdtsStreamProvider
-
public class AdtsStreamProvider extends java.lang.ObjectProvides the frames of an ADTS stream track to the frame consumer.
-
-
Constructor Summary
Constructors Constructor Description AdtsStreamProvider(java.io.InputStream inputStream, AudioProcessingContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Free all resources.voidprovideFrames()Provides frames to the frame consumer.voidsetInitialSeek(long requestedTimecode, long providedTimecode)Used to pass the initial position of the stream in case it is part of a chain, to keep timecodes of audio frames continuous.
-
-
-
Constructor Detail
-
AdtsStreamProvider
public AdtsStreamProvider(java.io.InputStream inputStream, AudioProcessingContext context)- Parameters:
inputStream- Input stream to read from.context- Configuration and output information for processing
-
-
Method Detail
-
setInitialSeek
public void setInitialSeek(long requestedTimecode, long providedTimecode)Used to pass the initial position of the stream in case it is part of a chain, to keep timecodes of audio frames continuous.- Parameters:
requestedTimecode- The timecode at which the samples from this stream should be outputted.providedTimecode- The timecode at which this stream starts.
-
provideFrames
public void provideFrames() throws java.lang.InterruptedExceptionProvides frames to the frame consumer.- Throws:
java.lang.InterruptedException- When interrupted externally (or for seek/stop).
-
close
public void close()
Free all resources.
-
-