org.kc7bfi.jflac.apps
Class Decoder

java.lang.Object
  extended by org.kc7bfi.jflac.apps.Decoder
All Implemented Interfaces:
PCMProcessor

public class Decoder
extends Object
implements PCMProcessor

Decode FLAC file to WAV file application.

Author:
kc7bfi

Constructor Summary
Decoder()
           
 
Method Summary
 void decode(String inFileName, String outFileName)
          Decode a FLAC file to a WAV file.
static void main(String[] args)
          Main routine.
 void processPCM(ByteData pcm)
          Process the decoded PCM bytes.
 void processStreamInfo(StreamInfo info)
          Process the StreamInfo block.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Decoder

public Decoder()
Method Detail

decode

public void decode(String inFileName,
                   String outFileName)
            throws IOException
Decode a FLAC file to a WAV file.

Parameters:
inFileName - The input FLAC file name
outFileName - The output WAV file name
Throws:
IOException - Thrown if error reading or writing files

processStreamInfo

public void processStreamInfo(StreamInfo info)
Process the StreamInfo block.

Specified by:
processStreamInfo in interface PCMProcessor
Parameters:
info - the StreamInfo block
See Also:
PCMProcessor.processStreamInfo(org.kc7bfi.jflac.metadata.StreamInfo)

processPCM

public void processPCM(ByteData pcm)
Process the decoded PCM bytes.

Specified by:
processPCM in interface PCMProcessor
Parameters:
pcm - The decoded PCM data
See Also:
org.kc7bfi.jflac.PCMProcessor#processPCM(org.kc7bfi.jflac.util.ByteSpace)

main

public static void main(String[] args)
Main routine.

args[0] is the input file name

args[1] is the output file name

Parameters:
args - Command line arguments


Copyright © 2004-2011. All Rights Reserved.