Class FlacTrackProvider


  • public class FlacTrackProvider
    extends java.lang.Object
    A provider of audio frames from a FLAC track.
    • Constructor Detail

      • FlacTrackProvider

        public FlacTrackProvider​(AudioProcessingContext context,
                                 FlacTrackInfo info,
                                 SeekableInputStream inputStream)
        Parameters:
        context - Configuration and output information for processing
        info - Track information from FLAC metadata
        inputStream - Input stream to use
    • Method Detail

      • provideFrames

        public void provideFrames()
                           throws java.lang.InterruptedException
        Decodes audio frames and sends them to frame consumer
        Throws:
        java.lang.InterruptedException - When interrupted externally (or for seek/stop).
      • seekToTimecode

        public void seekToTimecode​(long timecode)
        Seeks to the specified timecode.
        Parameters:
        timecode - The timecode in milliseconds
      • close

        public void close()
        Free all resources associated to processing the track.