• Post Reply Bookmark Topic Watch Topic
  • New Topic

importing sound files  RSS feed

 
Allion Salvador
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to make a program that takes recorded sound files and plays them when the user clicks a button. Do you know any classes in the API that might be helpful? Thanx
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are no classes in the standard API to play sounds, except the very weak AudioClip class in the java.applet package (which works only in browser/appletviewer environments.) To do anything "real" with sound, you need to use the Java Media Framework (JMF) API. See here for info about JMF.
 
Allion Salvador
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!