netx.jnlp.runtime

Class AppletAudioClip

Implemented Interfaces:
AudioClip

public class AppletAudioClip
extends java.lang.Object
implements AudioClip

An applet audio clip using the javax.sound API.
Version:
$Revision: 1.8 $
Author:
Jon A. Maxwell (JAM) - initial author

Constructor Summary

AppletAudioClip(URL location)
Creates new AudioClip.

Method Summary

(package private) void
dispose()
Stops playing the clip and disposes it; the clip cannot be played after being disposed.
void
loop()
Plays the clip in a continuous loop until the stop method is called.
void
play()
Plays the clip from the beginning.
void
stop()
Stops playing the clip.

Constructor Details

AppletAudioClip

public AppletAudioClip(URL location)
Creates new AudioClip. If the clip cannot be opened no exception is thrown, instead the methods of the AudioClip return without performing any operations.
Parameters:
location - the clip location

Method Details

dispose

(package private)  void dispose()
Stops playing the clip and disposes it; the clip cannot be played after being disposed.

loop

public void loop()
Plays the clip in a continuous loop until the stop method is called.

play

public void play()
Plays the clip from the beginning.

stop

public void stop()
Stops playing the clip.