Java AWT

Previous Chapter 18
java.applet Reference
Next
 

AudioClip

Name

AudioClip

[Graphic: Figure from the text]

Description

AudioClip is an interface for playing audio files.

Interface Definition

public abstract interface java.applet.AudioClip {
  // Interface Methods
  public abstract void loop();
  public abstract void play();
  public abstract void stop();
}

Interface Methods

loop

public abstract void loop()

Description

Plays an audio clip continuously.

play

public abstract void play()

Description

Plays an audio clip once from the beginning.

stop

public abstract void stop()

Description

Stops playing an audio clip.

See Also

Object


Previous Home Next
AppletStub Book Index AWTError

Java in a Nutshell Java Language Reference Java AWT Java Fundamental Classes Exploring Java