Applet.getAudioClip

Applet.getAudioClip

Class Overview | Class Members | This Package | All Packages

Syntax 1
public AudioClip getAudioClip( URL url )
Parameters
url
an absolute URL giving the location of the audio clip.
Returns
the audio clip at the specified URL.
Description
Returns the AudioClip object specified by the URL argument.

This method always returns immediately, whether or not the audio clip exists. When this applet attempts to play the audio clip, the data will be loaded.

See Also
AudioClip



Syntax 2
public AudioClip getAudioClip( URL url, String name )
Parameters
url
an absolute URL giving the base location of the audio clip.
name
the location of the audio clip, relative to the url argument.
Returns
the audio clip at the specified URL.
Description
Returns the AudioClip object specified by the URL and name arguments.

This method always returns immediately, whether or not the audio clip exists. When this applet attempts to play the audio clip, the data will be loaded.

See Also
AudioClip