This week's book giveaway is in the Agile forum.
We're giving away four copies of The Software Craftsman and have Sandro Mancuso on-line!
See this thread for details.
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

Win a copy of The Software Craftsman this week in the Agile forum!
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