org.kc7bfi.jflac.apps
Class Player

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

public class Player
extends Object
implements PCMProcessor

Play a FLAC file application.

Author:
kc7bfi

Constructor Summary
Player()
           
 
Method Summary
 void addListener(LineListener listener)
           
 void decode(String inFileName)
          Decode and play an input FLAC file.
static void main(String[] args)
          The main routine.
 void processPCM(ByteData pcm)
          Process the decoded PCM bytes.
 void processStreamInfo(StreamInfo streamInfo)
          Process the StreamInfo block.
 void removeListener(LineListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Player

public Player()
Method Detail

addListener

public void addListener(LineListener listener)

decode

public void decode(String inFileName)
            throws IOException,
                   LineUnavailableException
Decode and play an input FLAC file.

Parameters:
inFileName - The input FLAC file name
Throws:
IOException - Thrown if error reading file
LineUnavailableException - Thrown if error playing file

processStreamInfo

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

Specified by:
processStreamInfo in interface PCMProcessor
Parameters:
streamInfo - 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)

removeListener

public void removeListener(LineListener listener)

main

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

args[0] is the input file name

Parameters:
args - Command line arguments


Copyright © 2004-2011. All Rights Reserved.