|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kc7bfi.jflac.apps.SndPlayer
public class SndPlayer
Play.java
A simple class that plays audio from given file names.
Uses the Java Sound SourceDataLine interface to stream the sound. Converts compressed encodings (ALAW, ULAW, MP3) to PCM.
| Constructor Summary | |
|---|---|
SndPlayer()
|
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
Plays audio from given file names. |
static void |
playAudioFile(String fileName)
Play audio from the given file name. |
static void |
playAudioStream(AudioInputStream audioInputStream)
Plays audio from the given audio input stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SndPlayer()
| Method Detail |
|---|
public static void main(String[] args)
args - Command line parameterspublic static void playAudioFile(String fileName)
fileName - The file to playpublic static void playAudioStream(AudioInputStream audioInputStream)
audioInputStream - The audio stream to play
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||