public class BoomBox
extends java.lang.Object
implements javax.sound.sampled.LineListener
| Constructor and Description |
|---|
BoomBox(Content content)
Explicit Value Constructor
|
| Modifier and Type | Method and Description |
|---|---|
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)
|
public BoomBox(Content content)
content - The Contentpublic void addLineListener(javax.sound.sampled.LineListener listener)
listener - The LineListener to addpublic void start()
throws javax.sound.sampled.LineUnavailableException
javax.sound.sampled.LineUnavailableExceptionpublic void start(boolean block)
throws javax.sound.sampled.LineUnavailableException
block - true to block the calling thread until the clip stopsjavax.sound.sampled.LineUnavailableExceptionpublic 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.LineListenerevt - The LineEvent of interest