File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Sound Files Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of RabbitMQ in Depth this week in the Open Source forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Sound Files" Watch "Sound Files" New topic

Sound Files

Matthew Buska

Joined: Jul 27, 2004
Posts: 11

I would like to develop a Java program that will play a particular song depending on what the person chose from a drop-down list. My question is can the Java programming language be programmed to play an MP3 (MPEG-3) or a windows media audio (WMA) file. If not then what can be used instead of MP3 or WMA? Thanks ahead for any responses.
Layne Lund
Ranch Hand

Joined: Dec 06, 2001
Posts: 3061
I don't know all the audio formats that are supported by Java, but googling for "playing audio files in java" found several hits that look helpful.


[ June 05, 2005: Message edited by: Layne Lund ]

Java API Documentation
The Java Tutorial
Stuart Gray
Ranch Hand

Joined: Apr 21, 2005
Posts: 410
I think JMF (Java Media Framework) will be useful for this.
It is sorta covered in the JavaRanch Style Guide.
subject: Sound Files