Class WavFileLoader
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.container.wav.WavFileLoader
-
public class WavFileLoader extends java.lang.ObjectLoads either WAV header information or a WAV track provider from a stream.
-
-
Constructor Summary
Constructors Constructor Description WavFileLoader(SeekableInputStream inputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WavTrackProviderloadTrack(AudioProcessingContext context)Initialise a WAV track stream.WavFileInfoparseHeaders()Parses the headers of the file.
-
-
-
Constructor Detail
-
WavFileLoader
public WavFileLoader(SeekableInputStream inputStream)
- Parameters:
inputStream- Input stream to read the WAV data from. This must be positioned right before WAV RIFF header.
-
-
Method Detail
-
parseHeaders
public WavFileInfo parseHeaders() throws java.io.IOException
Parses the headers of the file.- Returns:
- Format description of the WAV file
- Throws:
java.io.IOException- On read error
-
loadTrack
public WavTrackProvider loadTrack(AudioProcessingContext context) throws java.io.IOException
Initialise a WAV track stream.- Parameters:
context- Configuration and output information for processing- Returns:
- The WAV track stream which can produce frames.
- Throws:
java.io.IOException- On read error
-
-