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.AudioFormatapply(javax.sound.sampled.AudioFormat suggested)static AVSampleFormatfindBest(java.util.Set<AVSampleFormat> supportedFormats, javax.sound.sampled.AudioFormat suggested)
-
Constructor Details
-
BestMatchingAudioFormatConvertor
public BestMatchingAudioFormatConvertor() -
BestMatchingAudioFormatConvertor
public BestMatchingAudioFormatConvertor(java.util.Collection<javax.sound.sampled.AudioFormat> supportedFormats)
-
-
Method Details
-
apply
public javax.sound.sampled.AudioFormat apply(javax.sound.sampled.AudioFormat suggested)- Specified by:
applyin interfacejava.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)
-