Forums Register Login

playing sounds using Applet class

+Pie Number of slices to send: Send
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.
Straws are for suckers. Now suck on this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 803 times.
Similar Threads
Connect-four
Scrolling through a textarea
playing sounds when button is pressed
How to calc bytes written into OutputStream
Question regarding the WA threads
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 19:59:18.