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