|
|||||||||
| 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(javax.sound.sampled.LineListener listener)
|
void |
decode(java.lang.String inFileName)
Decode and play an input FLAC file. |
static void |
main(java.lang.String[] args)
The main routine. |
void |
processPCM(ByteData pcm)
Process the decoded PCM bytes. |
void |
processStreamInfo(StreamInfo streamInfo)
Process the StreamInfo block. |
void |
removeListener(javax.sound.sampled.LineListener listener)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Player()
| Method Detail |
|---|
public void addListener(javax.sound.sampled.LineListener listener)
public void decode(java.lang.String inFileName)
throws java.io.IOException,
javax.sound.sampled.LineUnavailableException
inFileName - The input FLAC file name
java.io.IOException - Thrown if error reading file
javax.sound.sampled.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(javax.sound.sampled.LineListener listener)
public static void main(java.lang.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 | ||||||||