Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Application/Applet the plays audio files.

 
Dave Johnson
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone, I am playing around with sound files (wav) in my code. I have managed to get audio files to work in an Applet but not an Application yet.
Could you please be so kind as to show a small application that plays an audio file.
Ideally I will write it as applet/app later. But for now could help get me started please.
Thanks, Dave.
 
Jim Ronholm
Greenhorn
Posts: 18
Chrome Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Although there are fairly basic tools for playing .wav files in japplet I think that applications are going to need to rely on the Java Media Framework. The main site is here, and includes source for a demo application (and applet).
http://java.sun.com/products/java-media/jmf/
Java Media Framework
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could you please be so kind as to show a small application that plays an audio file.
Take a look at the Playing Sounds section of the Sound Trail of Sun's Java Tutorial.
Towards the bottom is an example of playing sounds in an application.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic