public class OscilloscopeDispatcher.SoundClip
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
(package private) javax.sound.sampled.Clip |
clip |
(package private) java.lang.String |
oldFile |
Constructor and Description |
---|
SoundClip() |
Modifier and Type | Method and Description |
---|---|
javax.sound.sampled.Clip |
getClip()
Returns the clip so you can control it.
|
void |
playClip(java.io.File file,
int loopCount)
Creates a clip from the passed sound file and plays it.
|
public javax.sound.sampled.Clip getClip()
public void playClip(java.io.File file, int loopCount)
getClip()
to control it.file
- loopCount
-