public class

AppletAudioClip

extends Object
implements AudioClip
java.lang.Object
   ↳ sun.applet.AppletAudioClip

Class Overview

Applet audio clip;

Summary

Public Constructors
AppletAudioClip(URL url)
Constructs an AppletAudioClip from an URL.
AppletAudioClip(URLConnection uc)
Constructs an AppletAudioClip from a URLConnection.
AppletAudioClip(byte[] data)
For constructing directly from Jar entries, or any other raw Audio data.
Public Methods
synchronized void loop()
Starts playing this audio clip in a loop.
synchronized void play()
Starts playing this audio clip.
synchronized void stop()
Stops playing this audio clip.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.applet.AudioClip

Public Constructors

public AppletAudioClip (URL url)

Constructs an AppletAudioClip from an URL.

public AppletAudioClip (URLConnection uc)

Constructs an AppletAudioClip from a URLConnection.

public AppletAudioClip (byte[] data)

For constructing directly from Jar entries, or any other raw Audio data. Note that the data provided must include the format header.

Public Methods

public synchronized void loop ()

Starts playing this audio clip in a loop.

public synchronized void play ()

Starts playing this audio clip. Each time this method is called, the clip is restarted from the beginning.

public synchronized void stop ()

Stops playing this audio clip.