Class WavTrackProvider


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

      • WavTrackProvider

        public WavTrackProvider​(AudioProcessingContext context,
                                SeekableInputStream inputStream,
                                WavFileInfo info)
        Parameters:
        context - Configuration and output information for processing
        inputStream - Input stream to use
        info - Information about the WAV file
    • Method Detail

      • seekToTimecode

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

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

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