• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to include sound in Java?

 
James Dark
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I'm currently in AP Computer Science 1 and am working on a final project. Within it, I was doing a multi-program and wanted to include sound to make the project more impressive. At the moment, I'm using JCreator LE and wanted to know how to include sound in the project. If you know how, could you please help me work through it, by telling me the steps? Your help is greatly appreciated. If you have any other suggestion of improving the project, please tell me (anything that does not involve java applets). My program will contain: (1) Multiple Choice Trivia with 4 different difficulties, (2) Able to convert different measurements such as meter to millimeter, (3) Able to find the number has a prime, (4) A game of High Low. Any help will be totally appreciated.
Thank you.
 
Stephen Huey
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Haven't done much of anything with sound, but here are a couple of possibilities:


Java Sound API: http://java.sun.com/products/java-media/sound/index.jsp

Examples: http://www.jsresources.org/examples/

Another tutorial: http://www.developer.com/java/other/article.php/1565671


All compliments of Google!
 
James Dark
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for you help. I will try to find out how to include sound.
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this to the Other Java APIs forum...
 
Kuldeep Vaishnav
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yea I tried to create an alarm system using java sound.Did not complete the project tho(I will be frank with you.. ) but sound API does provide functionality for various formats(mp3 etc).it also provides some cool stuff like synthesizer interface(or class..forgot)and all..Good luck.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!