Search in sources :

Example 11 with JavaLayerException

use of vazkii.symphony.lib.javazoom.jl.decoder.JavaLayerException in project Symphony by Vazkii.

the class jlc method main.

public static void main(String[] args) {
    String[] argv;
    long start = System.currentTimeMillis();
    int argc = args.length + 1;
    argv = new String[argc];
    argv[0] = "jlc";
    for (int i = 0; i < args.length; i++) argv[i + 1] = args[i];
    jlcArgs ma = new jlcArgs();
    if (!ma.processArgs(argv))
        System.exit(1);
    Converter conv = new Converter();
    int detail = (ma.verbose_mode ? ma.verbose_level : Converter.PrintWriterProgressListener.NO_DETAIL);
    Converter.ProgressListener listener = new Converter.PrintWriterProgressListener(new PrintWriter(System.out, true), detail);
    try {
        conv.convert(ma.filename, ma.output_filename, listener);
    } catch (JavaLayerException ex) {
        System.err.println("Convertion failure: " + ex);
    }
    System.exit(0);
}
Also used : JavaLayerException(vazkii.symphony.lib.javazoom.jl.decoder.JavaLayerException) PrintWriter(java.io.PrintWriter)

Aggregations

JavaLayerException (vazkii.symphony.lib.javazoom.jl.decoder.JavaLayerException)11 BufferedInputStream (java.io.BufferedInputStream)3 IOException (java.io.IOException)3 InputStream (java.io.InputStream)3 Header (vazkii.symphony.lib.javazoom.jl.decoder.Header)3 FileInputStream (java.io.FileInputStream)2 SampleBuffer (vazkii.symphony.lib.javazoom.jl.decoder.SampleBuffer)2 PrintWriter (java.io.PrintWriter)1 AudioFormat (javax.sound.sampled.AudioFormat)1 DataLine (javax.sound.sampled.DataLine)1 Line (javax.sound.sampled.Line)1 LineUnavailableException (javax.sound.sampled.LineUnavailableException)1 SourceDataLine (javax.sound.sampled.SourceDataLine)1 Bitstream (vazkii.symphony.lib.javazoom.jl.decoder.Bitstream)1 Decoder (vazkii.symphony.lib.javazoom.jl.decoder.Decoder)1 Obuffer (vazkii.symphony.lib.javazoom.jl.decoder.Obuffer)1 AudioDevice (vazkii.symphony.lib.javazoom.jl.player.AudioDevice)1