File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Play a WAV file in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Play a WAV file in Java" Watch "Play a WAV file in Java" New topic

Play a WAV file in Java

Andreas Bystrom
Ranch Hand

Joined: Mar 05, 2003
Posts: 32
Hi all!
Is it possible to play a wav file in java? I don't want to use JMF. I have seen the method Applet.newAudioclip(), is this somehting that can be used even if you have an application that is not an Applet?
Some other suggestions of how to play a file?
// Andreas
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
Take a look at

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: Play a WAV file in Java
It's not a secret anymore!