|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kc7bfi.jflac.apps.SeekTablePlayer
public class SeekTablePlayer
Play a FLAC file application.
| Constructor Summary | |
|---|---|
SeekTablePlayer()
|
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
The main routine. |
void |
play(String inFileName,
int fromSeekPoint,
int toSeekPoint)
Decode and play an input FLAC file. |
void |
processError(String msg)
Process a decoder error. |
void |
processFrame(Frame frame)
Called for each data frame read. |
void |
processMetadata(Metadata metadata)
Called for each Metadata frame read. |
void |
processPCM(ByteData pcm)
Process the decoded PCM bytes. |
void |
processStreamInfo(StreamInfo streamInfo)
Process the StreamInfo block. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SeekTablePlayer()
| Method Detail |
|---|
public void play(String inFileName,
int fromSeekPoint,
int toSeekPoint)
throws IOException,
LineUnavailableException
inFileName - The input FLAC file namefromSeekPoint - The starting Seek PointtoSeekPoint - The ending Seek Point (non-inclusive)
IOException - Thrown if error reading file
LineUnavailableException - Thrown if error playing filepublic void processStreamInfo(StreamInfo streamInfo)
processStreamInfo in interface PCMProcessorstreamInfo - the StreamInfo blockPCMProcessor.processStreamInfo(org.kc7bfi.jflac.metadata.StreamInfo)public void processPCM(ByteData pcm)
processPCM in interface PCMProcessorpcm - The decoded PCM dataorg.kc7bfi.jflac.PCMProcessor#processPCM(org.kc7bfi.jflac.util.ByteSpace)public void processMetadata(Metadata metadata)
processMetadata in interface FrameListenermetadata - The metadata frame readpublic void processFrame(Frame frame)
processFrame in interface FrameListenerframe - The data frame readpublic void processError(String msg)
processError in interface FrameListenermsg - The error messageFrameListener.processError(java.lang.String)public static void main(String[] args)
args[0] is the input file name
args - Command line arguments
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||