Class FlacTrackProvider
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.container.flac.FlacTrackProvider
-
public class FlacTrackProvider extends java.lang.ObjectA provider of audio frames from a FLAC track.
-
-
Constructor Summary
Constructors Constructor Description FlacTrackProvider(AudioProcessingContext context, FlacTrackInfo info, SeekableInputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Free all resources associated to processing the track.voidprovideFrames()Decodes audio frames and sends them to frame consumervoidseekToTimecode(long timecode)Seeks to the specified timecode.
-
-
-
Constructor Detail
-
FlacTrackProvider
public FlacTrackProvider(AudioProcessingContext context, FlacTrackInfo info, SeekableInputStream inputStream)
- Parameters:
context- Configuration and output information for processinginfo- Track information from FLAC metadatainputStream- Input stream to use
-
-
Method Detail
-
provideFrames
public void provideFrames() throws java.lang.InterruptedExceptionDecodes audio frames and sends them to frame consumer- Throws:
java.lang.InterruptedException- When interrupted externally (or for seek/stop).
-
seekToTimecode
public void seekToTimecode(long timecode)
Seeks to the specified timecode.- Parameters:
timecode- The timecode in milliseconds
-
close
public void close()
Free all resources associated to processing the track.
-
-