| | |
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
Views: 2006 | Replies: 6
| Thread Tools | Search this Thread |
Tag cloud for Java
-xlint android api apple applet application arguments array arrays automation binary block bluetooth chat class classes client code compile component database developmenthelp draw eclipse encode error event exception file fractal freeze game gameprogramming givemetehcodez graphics gui helpwithhomework html ide image input integer iphone j2me j2seprojects java javac javaprojects jmf jni jpanel julia lego linux list loop loops mac map method methods mobile netbeans newbie notdisplaying number object online oracle print problem program programming project recursion scanner screen server set singleton size sms socket sort sql string swing system template test textfields threads time title transfer tree tutorial-sample update windows working






