Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Java and JDK > Java Basics
Password Reminder
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Java Basics General beginning Java language questions that don't fit in one of the more specific forums. Please specify what version.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Java Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Display Modes
  #1 (permalink)  
Old October 15th, 2008, 06:21 AM
Registered User
Join Date: Oct 2008
Location: karachi, sindh, Pakistan.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to naresh
Default playing sound files (java 2 jdk1.3 edition)


i want to make a console program that allows to enter amount (int) from keyboard and then plays the amount back from the speaker. in the book its written about how to play sound files using java applet only. how can i play the wav files in a specific folder using a console program.

secondly i have recorded the audio files for the necessary digits (1.wav to 20.wav,30.wav,40.wav,50.wav, 60.wav, 70.wav,80.wav,90.wav, hundred.wav, thousand.wav). wouldn't it be better to use hashmaps and assign a key (considering in mind the recorded file) to recorded objects. i think it would be easier to call and play digits:(. kindly comment.


Reply With Quote
  #2 (permalink)  
Old April 11th, 2009, 01:04 AM
Friend of Wrox
Join Date: Dec 2008
Location: , , .
Posts: 238
Thanks: 2
Thanked 20 Times in 19 Posts

use javax.sound package.
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
playing SWF sound onmouseover rmjaworski Javascript How-To 2 October 7th, 2008 02:09 PM
playing wid registry files amit.reply C# 0 March 17th, 2007 01:30 PM
playing audio files in c#.net sumith ASP.NET 1.0 and 1.1 Professional 0 February 6th, 2007 11:14 PM
[JAVA] PRINT - SOUND gianni17 J2EE 0 February 20th, 2005 12:11 PM
Java Sound Help anjithalb BOOK: Beginning Java 2 0 September 18th, 2003 02:42 AM

All times are GMT -4. The time now is 02:06 AM.

Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.