This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes play wav file from console application Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "play wav file from console application" Watch "play wav file from console application" New topic
Author

play wav file from console application

Benjamin Mulder
Greenhorn

Joined: Mar 13, 2004
Posts: 18
Is it possible? All the stuff I've found about sound are related to applets.

But I don't want an applet. My application executes from console. How do I do that? Feel free to offer any sample code. Thanks in advance.

Nigel Browne
Ranch Hand

Joined: May 15, 2001
Posts: 673
I refer you to the java sound programmers guide
Ko Ko Naing
Ranch Hand

Joined: Jun 08, 2002
Posts: 3178
Assume that it is possible to develop such applcation, how can you stop your player? It will become an audio application without stop option? You can start to play your application with choosing option in the command, but how can you stop?

Is there any specific reason why you want to develop such audio applications on console? or is it just to test the APIs?


Co-author of SCMAD Exam Guide, Author of JMADPlus
SCJP1.2, CCNA, SCWCD1.4, SCBCD1.3, SCMAD1.0, SCJA1.0, SCJP6.0
Stefan Wagner
Ranch Hand

Joined: Jun 02, 2003
Posts: 1923

Why shouldn't it be possible to stop playing a sound file on the console?
Where is the difference to a gui?


http://home.arcor.de/hirnstrom/bewerbung
 
I agree. Here's the link: jrebel
 
subject: play wav file from console application
 
Similar Threads
how to clear user cache?
The GUI Thread.
Play MP3 in jar file
equalsIgnoreCase
Play sound in Applications