This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Sound Files without Japplet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Sound Files without Japplet" Watch "Sound Files without Japplet" New topic
Author

Sound Files without Japplet

Landon Blake
Ranch Hand

Joined: Dec 04, 2003
Posts: 121
The book I'm learning Java with said that you need to use a subclass of japplet to play sound files in a program, because the sound features of Java 1.0 were packaged with the applet classes. Is there a way to play sound files in a stand alone program using another method or different set of classes?
Thanks,
The Sunburned Surveyor
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Yes. The Java Media Framework (JMF) is an add-on API that does what you want. See http://java.sun.com/products/java-media/jmf/index.jsp .


[Jess in Action][AskingGoodQuestions]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
You might want to take a look at The Sound Trail of Sun's Java Tutorial.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
 
subject: Sound Files without Japplet
 
Similar Threads
audio resources for Applet, alternatives to Jar?
JApplet - Javax sound- JNLP????
applet socketpermissions
which way to go: eMbeded C++ or Personal Java
playing sound from jar