java > play audio file

Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Apr 2008
Posts: 102
Reputation: localp is an unknown quantity at this point 
Solved Threads: 2
localp localp is offline Offline
Junior Poster

java > play audio file

 
0
  #1
Feb 13th, 2009
i want to play an audio file in java without opening a player ...

like an alarm ...

does any1 knows how to do this.. and r there any sample codes available online ... (please provide relevant links only)
Local P ...
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 276
Reputation: rapture has a spectacular aura about rapture has a spectacular aura about 
Solved Threads: 37
rapture rapture is offline Offline
Posting Whiz in Training

Re: java > play audio file

 
1
  #2
Feb 13th, 2009
hmm wierd, what didn't you find? I typed in

java play audio file

and found a ton of stuff in google . . .
Reply With Quote Quick reply to this message  
Join Date: May 2007
Posts: 4,514
Reputation: Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future Ezzaral has a brilliant future 
Solved Threads: 523
Moderator
Featured Poster
Ezzaral's Avatar
Ezzaral Ezzaral is offline Offline
Industrious Poster

Re: java > play audio file

 
1
  #3
Feb 13th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 102
Reputation: localp is an unknown quantity at this point 
Solved Threads: 2
localp localp is offline Offline
Junior Poster

Re: java > play audio file

 
-1
  #4
Feb 13th, 2009
Originally Posted by rapture View Post
hmm wierd, what didn't you find? I typed in

java play audio file

and found a ton of stuff in google . . .
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 ...
Reply With Quote Quick reply to this message  
Join Date: Jul 2007
Posts: 276
Reputation: rapture has a spectacular aura about rapture has a spectacular aura about 
Solved Threads: 37
rapture rapture is offline Offline
Posting Whiz in Training

Re: java > play audio file

 
0
  #5
Feb 13th, 2009
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.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 706
Reputation: stultuske is a jewel in the rough stultuske is a jewel in the rough stultuske is a jewel in the rough 
Solved Threads: 84
stultuske's Avatar
stultuske stultuske is offline Offline
Master Poster

Re: java > play audio file

 
0
  #6
Feb 15th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Apr 2008
Posts: 102
Reputation: localp is an unknown quantity at this point 
Solved Threads: 2
localp localp is offline Offline
Junior Poster

Re: java > play audio file

 
0
  #7
Feb 15th, 2009
thanks a lot, I'll try coding it, and if i come across any errors, I'll contact you guys,, thanks a lot.
Local P ...
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Java Forum


Views: 2006 | Replies: 6
Thread Tools Search this Thread



Tag cloud for Java
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC