1. /*
  2. * @(#)AudioClip.java 1.15 00/02/02
  3. *
  4. * Copyright 1995-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package java.applet;
  11. /**
  12. * The <code>AudioClip</code> interface is a simple abstraction for
  13. * playing a sound clip. Multiple <code>AudioClip</code> items can be
  14. * playing at the same time, and the resulting sound is mixed
  15. * together to produce a composite.
  16. *
  17. * @author Arthur van Hoff
  18. * @version 1.15, 02/02/00
  19. * @since JDK1.0
  20. */
  21. public interface AudioClip {
  22. /**
  23. * Starts playing this audio clip. Each time this method is called,
  24. * the clip is restarted from the beginning.
  25. */
  26. void play();
  27. /**
  28. * Starts playing this audio clip in a loop.
  29. */
  30. void loop();
  31. /**
  32. * Stops playing this audio clip.
  33. */
  34. void stop();
  35. }