• Post Reply Bookmark Topic Watch Topic
  • New Topic

playing sounds using Applet class

 
Nadin Jovan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the code I used to play a sound in my program that will notify the user the something has happened.
URL url = //url to the wav file I want played
AudioClip clip = Applet.newAudioClip(url);
clip.play();
What I am experiencing is that the sounds is played sometimes and sometimes not. It is played more offten than not, but still it happens that sometimes it is not. Am I doing something wrong? Any suggestions what might be the problem? Thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!