Class FlacFileLoader
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.container.flac.FlacFileLoader
-
public class FlacFileLoader extends java.lang.ObjectLoads either FLAC header information or a FLAC track object from a stream.
-
-
Constructor Summary
Constructors Constructor Description FlacFileLoader(SeekableInputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FlacTrackProviderloadTrack(AudioProcessingContext context)Initialise a FLAC track stream.FlacTrackInfoparseHeaders()Read all metadata from a FLAC file.
-
-
-
Constructor Detail
-
FlacFileLoader
public FlacFileLoader(SeekableInputStream inputStream)
- Parameters:
inputStream- Input stream to read the FLAC data from. This must be positioned right before FLAC FourCC.
-
-
Method Detail
-
parseHeaders
public FlacTrackInfo parseHeaders() throws java.io.IOException
Read all metadata from a FLAC file. Stream position is at the beginning of the first frame after this call.- Returns:
- FLAC track information
- Throws:
java.io.IOException- On IO Error
-
loadTrack
public FlacTrackProvider loadTrack(AudioProcessingContext context) throws java.io.IOException
Initialise a FLAC track stream.- Parameters:
context- Configuration and output information for processing- Returns:
- The FLAC track stream which can produce frames.
- Throws:
java.io.IOException- On IO error
-
-