Interface OggTrackHandler
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
- All Known Implementing Classes:
OggFlacTrackHandler,OggOpusTrackHandler,OggVorbisTrackHandler
public interface OggTrackHandler extends java.io.CloseableA handler for a specific codec for an OGG stream.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-
-
Method Detail
-
initialise
void initialise(AudioProcessingContext context, long timecode, long desiredTimecode) throws java.io.IOException
Initialises the track stream.- Parameters:
context- Configuration and output information for processing- Throws:
java.io.IOException- On read error.
-
provideFrames
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
void seekToTimecode(long timecode)
Seeks to the specified timecode.- Parameters:
timecode- The timecode in milliseconds
-
-