|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kc7bfi.jflac.apps.Player
public class Player
Play a FLAC file application.
| 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 |
|---|
public Player()
| Method Detail |
|---|
public void addListener(LineListener listener)
public void decode(String inFileName)
throws IOException,
LineUnavailableException
inFileName - The input FLAC file name
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 removeListener(LineListener listener)
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 | |||||||||