|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectSimpleClip
public class SimpleClip
The SimpleClip class makes it easy to load and play audio clips
| Constructor Summary | |
|---|---|
SimpleClip(java.lang.String soundName)
load the clip into memory. |
|
| Method Summary | |
|---|---|
void |
drain()
wait until playback is done, then return |
void |
play()
play the clip (can call more than once) |
void |
stop()
stop playback |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleClip(java.lang.String soundName)
throws javax.sound.sampled.UnsupportedAudioFileException,
java.io.IOException,
javax.sound.sampled.LineUnavailableException
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException
javax.sound.sampled.LineUnavailableException| Method Detail |
|---|
public void play()
public void stop()
public void drain()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||