Class BestMatchingAudioFormatConvertor

java.lang.Object
com.zakgof.velvetvideo.impl.middle.BestMatchingAudioFormatConvertor
All Implemented Interfaces:
java.util.function.Function<javax.sound.sampled.AudioFormat,​javax.sound.sampled.AudioFormat>

public class BestMatchingAudioFormatConvertor
extends java.lang.Object
implements java.util.function.Function<javax.sound.sampled.AudioFormat,​javax.sound.sampled.AudioFormat>
  • Constructor Summary

    Constructors 
    Constructor Description
    BestMatchingAudioFormatConvertor()  
    BestMatchingAudioFormatConvertor​(java.util.Collection<javax.sound.sampled.AudioFormat> supportedFormats)  
  • Method Summary

    Modifier and Type Method Description
    javax.sound.sampled.AudioFormat apply​(javax.sound.sampled.AudioFormat suggested)  
    static AVSampleFormat findBest​(java.util.Set<AVSampleFormat> supportedFormats, javax.sound.sampled.AudioFormat suggested)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    andThen, compose
  • Constructor Details

  • Method Details

    • apply

      public javax.sound.sampled.AudioFormat apply​(javax.sound.sampled.AudioFormat suggested)
      Specified by:
      apply in interface java.util.function.Function<javax.sound.sampled.AudioFormat,​javax.sound.sampled.AudioFormat>
    • findBest

      public static AVSampleFormat findBest​(java.util.Set<AVSampleFormat> supportedFormats, javax.sound.sampled.AudioFormat suggested)