Class OggFlacTrackHandler
- java.lang.Object
-
- com.sedmelluq.discord.lavaplayer.container.ogg.flac.OggFlacTrackHandler
-
- All Implemented Interfaces:
OggTrackHandler,java.io.Closeable,java.lang.AutoCloseable
public class OggFlacTrackHandler extends java.lang.Object implements OggTrackHandler
OGG stream handler for FLAC codec.
-
-
Constructor Summary
Constructors Constructor Description OggFlacTrackHandler(FlacTrackInfo info, OggPacketInputStream packetInputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidinitialise(AudioProcessingContext context, long timecode, long desiredTimecode)Initialises the track stream.voidprovideFrames()Decodes audio frames and sends them to frame consumer.voidseekToTimecode(long timecode)Seeks to the specified timecode.
-
-
-
Constructor Detail
-
OggFlacTrackHandler
public OggFlacTrackHandler(FlacTrackInfo info, OggPacketInputStream packetInputStream)
- Parameters:
info- FLAC track infopacketInputStream- OGG packet input stream
-
-
Method Detail
-
initialise
public void initialise(AudioProcessingContext context, long timecode, long desiredTimecode)
Description copied from interface:OggTrackHandlerInitialises the track stream.- Specified by:
initialisein interfaceOggTrackHandler- Parameters:
context- Configuration and output information for processing
-
provideFrames
public void provideFrames() throws java.lang.InterruptedExceptionDescription copied from interface:OggTrackHandlerDecodes audio frames and sends them to frame consumer.- Specified by:
provideFramesin interfaceOggTrackHandler- Throws:
java.lang.InterruptedException- When interrupted externally (or for seek/stop).
-
seekToTimecode
public void seekToTimecode(long timecode)
Description copied from interface:OggTrackHandlerSeeks to the specified timecode.- Specified by:
seekToTimecodein interfaceOggTrackHandler- Parameters:
timecode- The timecode in milliseconds
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable
-
-