| | |
java > play audio file
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved |
After 61 posts here, you should be well aware that "chat-speak" or "IM-speak" is discouraged in the forum rules. Are you really too lazy to type out all of the letters and use punctuation where appropriate? Should anyone else spend their time to help someone who doesn't care enough to take the time to communication properly? Think about it.
That said, try the Java Media Framework. You can find a lot of demo code and examples here: http://java.sun.com/javase/technolog...les/index.html
That said, try the Java Media Framework. You can find a lot of demo code and examples here: http://java.sun.com/javase/technolog...les/index.html
•
•
Join Date: Apr 2008
Posts: 102
Reputation:
Solved Threads: 2
the prob is, that the player should not open ... and only the sound should play ..... like in gmail chat , wen a new message comes, a sound also plays...(but without opening a player)
Local P ...
•
•
Join Date: Jul 2007
Posts: 276
Reputation:
Solved Threads: 37
I tried to help you once. Again I typed in "Java play audio file" and the first result from google was here
http://www.google.com/search?hl=en&q...lay+audio+file
in google the description says this
"Here's a step-by-step guide to playing audio files in a Java application"
And Ezzaral is right, please refrain from using IM type speak. This isn't a chat room.
http://www.google.com/search?hl=en&q...lay+audio+file
in google the description says this
"Here's a step-by-step guide to playing audio files in a Java application"
And Ezzaral is right, please refrain from using IM type speak. This isn't a chat room.
just because you play an audio file doesn't mean you have to open a visible player.
now, if you want to play a .wav or .au file, or something similar, you don't need to install JMF or anything like that, but if you're trying to play .mp3 files, you have (as far as I know) 2 options (propably more, but only looked into these two myself):
1. the Java Media Framework, provided by Sun
2. the JLayer - mp3 library. I've used this one since it was VERY user friendly.
you should be able to write an application that does the trick by now, if it doesn't work, don't just repeat the question, but show us the code you have so far, and explain what function of it doesn't work the way you want it to
now, if you want to play a .wav or .au file, or something similar, you don't need to install JMF or anything like that, but if you're trying to play .mp3 files, you have (as far as I know) 2 options (propably more, but only looked into these two myself):
1. the Java Media Framework, provided by Sun
2. the JLayer - mp3 library. I've used this one since it was VERY user friendly.
you should be able to write an application that does the trick by now, if it doesn't work, don't just repeat the question, but show us the code you have so far, and explain what function of it doesn't work the way you want it to
![]() |
Similar Threads
- Play a .wav file (Java)
- Playing A song (Java)
- A few questions regarding video, images and audio (Java)
- please help i have a log file!! (Viruses, Spyware and other Nasties)
- audio mobile player (Java)
Other Threads in the Java Forum
- Previous Thread: Problems getting focus on buttons
- Next Thread: Need help using MaskFormatter
| Thread Tools | Search this Thread |
3d 6 @param affinetransform android api applet application arc array arrays automation binary bluetooth bold byte c++ chat class classes click client code compare component coordinates database detection doctype draw eclipse educational error event exception file fractal froglogic game givemetehcodez graphics gui guitesting helpwithhomework html ide ideas image ingres input integer internet intersect j2me java javaexcel javaprojects jni jpanel jtextarea julia linux list loop map method methods mobile netbeans newbie nextline oracle pong print problem program programming project recursion recursive rim scanner screen sell server set size sms sort sql string swing terminal threads time tree user web websites windows






