Class AudioDecoderFactory
java.lang.Object
net.avadeaux.klipspringer.decoder.AudioDecoderFactory
Interface for getting AudioDecoder given file name and target.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AudioDecodergetAudioDecoder(String fileName, AudioDecoder.Target target) Factory method that creates an audio decoder suitable for the format of the given file (if it can), with the given target for audio data.static AudioDecoderFactoryGets a factory that works for known PCM file types, including FLAC.
-
Constructor Details
-
AudioDecoderFactory
public AudioDecoderFactory()
-
-
Method Details
-
getAudioDecoder
public abstract AudioDecoder getAudioDecoder(String fileName, AudioDecoder.Target target) throws IOException Factory method that creates an audio decoder suitable for the format of the given file (if it can), with the given target for audio data.- Throws:
IOException
-
getInstance
Gets a factory that works for known PCM file types, including FLAC. Examines file name to determine the type of file.
-