|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectauditory.sampled.BoomBox
public class BoomBox
A Boombox renders/presents sampled auditory content
Constructor Summary | |
---|---|
BoomBox(Content content)
Explicit Value Constructor |
Method Summary | |
---|---|
void |
addLineListener(javax.sound.sampled.LineListener listener)
Add a LineListener to this Content |
void |
removeLineListener(javax.sound.sampled.LineListener listener)
Remove a LineListener |
void |
start()
Render the Content without blocking |
void |
start(boolean block)
Render this Content |
void |
update(javax.sound.sampled.LineEvent evt)
Handle LineEvents (required by LineListener) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BoomBox(Content content)
content
- The ContentMethod Detail |
---|
public void addLineListener(javax.sound.sampled.LineListener listener)
listener
- The LineListener to addpublic void start() throws javax.sound.sampled.LineUnavailableException
javax.sound.sampled.LineUnavailableException
public void start(boolean block) throws javax.sound.sampled.LineUnavailableException
block
- true to block the calling thread until the clip stops
javax.sound.sampled.LineUnavailableException
public void removeLineListener(javax.sound.sampled.LineListener listener)
listener
- The LineListener to addpublic void update(javax.sound.sampled.LineEvent evt)
update
in interface javax.sound.sampled.LineListener
evt
- The LineEvent of interest
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |