base
Class CDPlay
java.lang.Object
java.lang.Thread
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.
| 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 |
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)