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. package java.applet;
  8. /**
  9. * The <code>AudioClip</code> interface is a simple abstraction for
  10. * playing a sound clip. Multiple <code>AudioClip</code> items can be
  11. * playing at the same time, and the resulting sound is mixed
  12. * together to produce a composite.
  13. *
  14. * @author Arthur van Hoff
  15. * @version 1.18, 12/19/03
  16. * @since JDK1.0
  17. */
  18. public interface AudioClip {
  19. /**
  20. * Starts playing this audio clip. Each time this method is called,
  21. * the clip is restarted from the beginning.
  22. */
  23. void play();
  24. /**
  25. * Starts playing this audio clip in a loop.
  26. */
  27. void loop();
  28. /**
  29. * Stops playing this audio clip.
  30. */
  31. void stop();
  32. }