|
|||||||||
| 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(java.lang.String[] args)
Plays audio from given file names. |
static void |
playAudioFile(java.lang.String fileName)
Play audio from the given file name. |
static void |
playAudioStream(javax.sound.sampled.AudioInputStream audioInputStream)
Plays audio from the given audio input stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SndPlayer()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - Command line parameterspublic static void playAudioFile(java.lang.String fileName)
fileName - The file to playpublic static void playAudioStream(javax.sound.sampled.AudioInputStream audioInputStream)
audioInputStream - The audio stream to play
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||