Class WavFileLoader


  • public class WavFileLoader
    extends java.lang.Object
    Loads either WAV header information or a WAV track provider from a stream.
    • Constructor Detail

      • WavFileLoader

        public WavFileLoader​(SeekableInputStream inputStream)
        Parameters:
        inputStream - Input stream to read the WAV data from. This must be positioned right before WAV RIFF header.
    • Method Detail

      • parseHeaders

        public WavFileInfo parseHeaders()
                                 throws java.io.IOException
        Parses the headers of the file.
        Returns:
        Format description of the WAV file
        Throws:
        java.io.IOException - On read error
      • loadTrack

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