Class ConverterAudioFilter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static int BUFFER_SIZE  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()
      Free all resources.
      protected static short floatToShort​(float value)  
      void flush()
      Flush everything to output.
      void seekPerformed​(long requestedTime, long providedTime)
      Indicates that the next samples are not a continuation from the previous ones and gives the timecode for the next incoming sample.
      • Methods inherited from class java.lang.Object

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

      • ConverterAudioFilter

        public ConverterAudioFilter()
    • Method Detail

      • seekPerformed

        public void seekPerformed​(long requestedTime,
                                  long providedTime)
        Description copied from interface: AudioFilter
        Indicates that the next samples are not a continuation from the previous ones and gives the timecode for the next incoming sample.
        Specified by:
        seekPerformed in interface AudioFilter
        Parameters:
        requestedTime - Timecode in milliseconds to which the seek was requested to
        providedTime - Timecode in milliseconds to which the seek was actually performed to
      • flush

        public void flush()
                   throws java.lang.InterruptedException
        Description copied from interface: AudioFilter
        Flush everything to output.
        Specified by:
        flush in interface AudioFilter
        Throws:
        java.lang.InterruptedException - When interrupted externally (or for seek/stop).
      • close

        public void close()
        Description copied from interface: AudioFilter
        Free all resources. No more input is expected.
        Specified by:
        close in interface AudioFilter
      • floatToShort

        protected static short floatToShort​(float value)