Class FlacFileLoader


  • public class FlacFileLoader
    extends java.lang.Object
    Loads either FLAC header information or a FLAC track object from a stream.
    • Constructor Detail

      • FlacFileLoader

        public FlacFileLoader​(SeekableInputStream inputStream)
        Parameters:
        inputStream - Input stream to read the FLAC data from. This must be positioned right before FLAC FourCC.
    • Method Detail

      • parseHeaders

        public FlacTrackInfo parseHeaders()
                                   throws java.io.IOException
        Read all metadata from a FLAC file. Stream position is at the beginning of the first frame after this call.
        Returns:
        FLAC track information
        Throws:
        java.io.IOException - On IO Error
      • loadTrack

        public FlacTrackProvider loadTrack​(AudioProcessingContext context)
                                    throws java.io.IOException
        Initialise a FLAC track stream.
        Parameters:
        context - Configuration and output information for processing
        Returns:
        The FLAC track stream which can produce frames.
        Throws:
        java.io.IOException - On IO error