Class AudioDecoderFactory

java.lang.Object
net.avadeaux.klipspringer.decoder.AudioDecoderFactory

public abstract class AudioDecoderFactory extends Object
Interface for getting AudioDecoder given file name and target.
  • 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

      public static AudioDecoderFactory getInstance()
      Gets a factory that works for known PCM file types, including FLAC. Examines file name to determine the type of file.