Class MatroskaVorbisTrackConsumer

  • All Implemented Interfaces:
    MatroskaTrackConsumer, java.lang.AutoCloseable

    public class MatroskaVorbisTrackConsumer
    extends java.lang.Object
    implements MatroskaTrackConsumer
    Consumes Vorbis track data from a matroska file.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Already flushed, no more input coming.
      void consume​(java.nio.ByteBuffer data)
      Consume one frame from the track
      void flush()
      Indicates that no more input will come, all remaining buffers should be flushed
      MatroskaFileTrack getTrack()  
      void initialise()
      Initialise the consumer, called before first consume()
      void seekPerformed​(long requestedTimecode, long providedTimecode)
      Indicates that the next frame is not a direct continuation of the previous one
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MatroskaVorbisTrackConsumer

        public MatroskaVorbisTrackConsumer​(AudioProcessingContext context,
                                           MatroskaFileTrack track)
        Parameters:
        context - Configuration and output information for processing
        track - The associated matroska track
    • Method Detail

      • seekPerformed

        public void seekPerformed​(long requestedTimecode,
                                  long providedTimecode)
        Description copied from interface: MatroskaTrackConsumer
        Indicates that the next frame is not a direct continuation of the previous one
        Specified by:
        seekPerformed in interface MatroskaTrackConsumer
        Parameters:
        requestedTimecode - Timecode in milliseconds to which the seek was requested to
        providedTimecode - Timecode in milliseconds to which the seek was actually performed to
      • flush

        public void flush()
                   throws java.lang.InterruptedException
        Description copied from interface: MatroskaTrackConsumer
        Indicates that no more input will come, all remaining buffers should be flushed
        Specified by:
        flush in interface MatroskaTrackConsumer
        Throws:
        java.lang.InterruptedException - When interrupted externally (or for seek/stop).
      • consume

        public void consume​(java.nio.ByteBuffer data)
                     throws java.lang.InterruptedException
        Description copied from interface: MatroskaTrackConsumer
        Consume one frame from the track
        Specified by:
        consume in interface MatroskaTrackConsumer
        Parameters:
        data - The data of the frame
        Throws:
        java.lang.InterruptedException - When interrupted externally (or for seek/stop).
      • close

        public void close()
        Description copied from interface: MatroskaTrackConsumer
        Already flushed, no more input coming. Free all resources.
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface MatroskaTrackConsumer