Posted by À±°æ±¸ on October 29, 1997 at 15:20:48:
In Reply to: [Áú¹®] ¾ÖÇø®ÄÉÀ̼ǿ¡¼ ¼Ò¸® ³ª°Ô ÇÏ´Â ¹æ¹ý Á» °¡¸£ÃÄ Áֽʽÿä posted by ÇѺ´Ã¶ on October 24, 1997 at 20:31:40:
ÀÚ¹Ù FAQ¿¡¼ ÃßÃâÇÑ ³»¿ëÀÔ´Ï´Ù. Âü°íÇϼ¼¿ä.
8.5 How can I play *.au files from an application?
A. You've got 2 options:
a. Use the AudioClip or AudioPlayer class in sun.audio
http://www.javaworld.com/javaworld/javatips/jw-javatip24.html
If you take this option, you can only play AU files. Worse, your code is no longer 100% pure Java, as it
relies on a vendor library.
import sun.audio.*;
URL url; ...
AudioStream audiostream = new AudioStream(url.openStream());
AudioPlayer.cgiayer.start(audiostream);
...
AudioPlayer.cgiayer.stop(audiostream);
b. Use the new Java Media Framework API, allowing a wide range of video and audio formats to be
played back. See previous question for implementations of this.