KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > java > applet > AudioClip


1 /*
2  * @(#)AudioClip.java 1.18 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package java.applet;
9
10 /**
11  * The <code>AudioClip</code> interface is a simple abstraction for
12  * playing a sound clip. Multiple <code>AudioClip</code> items can be
13  * playing at the same time, and the resulting sound is mixed
14  * together to produce a composite.
15  *
16  * @author Arthur van Hoff
17  * @version 1.18, 12/19/03
18  * @since JDK1.0
19  */

20 public interface AudioClip {
21     /**
22      * Starts playing this audio clip. Each time this method is called,
23      * the clip is restarted from the beginning.
24      */

25     void play();
26
27     /**
28      * Starts playing this audio clip in a loop.
29      */

30     void loop();
31
32     /**
33      * Stops playing this audio clip.
34      */

35     void stop();
36 }
37
Popular Tags