import java.applet.AudioClip;
public class AudioClipManager
implements AudioClip {
private static
AudioClipManager myInstance = new AudioClipManager
();
private AudioClipManager
() {}
public static
AudioClipManager getInstance () { return myInstance;
}
public void play
(AudioClip clip) { ... }
public void loop
(AudioClip clip) { ... }
public void stop
()
{ ... }
} |