public class AudioSystemClipImpl extends AbstractSCAudioClip
audioNotifier, sync, uri
Constructor and Description |
---|
AudioSystemClipImpl(java.lang.String url,
AudioNotifierService audioNotifier,
AudioSystem audioSystem,
boolean playback)
Creates the audio clip and initializes the listener used from the
loop timer.
|
Modifier and Type | Method and Description |
---|---|
protected void |
enterRunInPlayThread()
Notifies this instance that its execution in its background/separate
thread dedicated to the playback of this audio is about to start playing
this audio for the first time.
|
protected void |
exitRunInPlayThread()
Notifies this instance that its execution in its background/separate
thread dedicated to the playback of this audio is about to stop playing
this audio once.
|
protected void |
exitRunOnceInPlayThread()
Notifies this instance that its execution in its background/separate
thread dedicated to the playback of this audio is about to stop playing
this audio.
|
protected boolean |
runOnceInPlayThread()
Plays this audio once.
|
enterRunOnceInPlayThread, getLoopInterval, internalStop, isInvalid, isLooping, isStarted, play, play, setInvalid, setLooping, setLoopInterval, stop
public AudioSystemClipImpl(java.lang.String url, AudioNotifierService audioNotifier, AudioSystem audioSystem, boolean playback) throws java.io.IOException
url
- the URL pointing to the audio fileaudioNotifier
- the audio notify serviceplayback
- to use playback or notification devicejava.io.IOException
- cannot audio clip with supplied URL.protected void enterRunInPlayThread()
enterRunInPlayThread
in class AbstractSCAudioClip
protected void exitRunInPlayThread()
exitRunInPlayThread
in class AbstractSCAudioClip
protected void exitRunOnceInPlayThread()
exitRunOnceInPlayThread
in class AbstractSCAudioClip
protected boolean runOnceInPlayThread()
runOnceInPlayThread
in class AbstractSCAudioClip
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.