base
Class CDPlay

java.lang.Object
  extended by java.lang.Thread
      extended by base.CDPlay
All Implemented Interfaces:
Runnable, org.kc7bfi.jflac.PCMProcessor

public class CDPlay
extends Thread
implements org.kc7bfi.jflac.PCMProcessor

This class implements the functionality that is required to replay the FLAC audio data. It is structured according to the requirements of the jFLAC library, for details please refer to the manual of jFLAC which can be found at http://jflac.sourceforge.net.
Following only these methods are described in detail that offer a functionality that is not related to the jFLAC interface directly.


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 void addListener(LineListener listener)
           
 void decode(String inFileName)
           
 void decode(String[] inFileNames, int myStartPos)
           
 void processPCM(org.kc7bfi.jflac.util.ByteData pcm)
          Process the decoded PCM bytes.
 void processStreamInfo(org.kc7bfi.jflac.metadata.StreamInfo streamInfo)
          Called when StreamInfo read.
 void removeListener(LineListener listener)
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

addListener

public void addListener(LineListener listener)

decode

public void decode(String inFileName)
            throws IOException
Throws:
IOException

decode

public void decode(String[] inFileNames,
                   int myStartPos)
            throws IOException
Throws:
IOException

processStreamInfo

public void processStreamInfo(org.kc7bfi.jflac.metadata.StreamInfo streamInfo)
Description copied from interface: org.kc7bfi.jflac.PCMProcessor
Called when StreamInfo read.

Specified by:
processStreamInfo in interface org.kc7bfi.jflac.PCMProcessor
Parameters:
streamInfo - The FLAC stream info metadata block

processPCM

public void processPCM(org.kc7bfi.jflac.util.ByteData pcm)
Process the decoded PCM bytes.

Specified by:
processPCM in interface org.kc7bfi.jflac.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)