wood burning stoves 2.0*
The moose likes Applets and the fly likes sound Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "sound" Watch "sound" New topic
Author

sound

Stephanie Grasson
Ranch Hand

Joined: Jun 14, 2000
Posts: 347
Hi all!
I am trying to play a sound when the user clicks a button in my applet. I am using the following method:
AudioClip myAudio = getAudioClip(getCodeBase(), "chord.wav");
myAudio.play();
I don't get any errors or warnings, but no sound is played.
The button works properly (I tested it by printing text to a TextArea on my applet whenever the button was pressed).
Any ideas?
Thanks in advance.
Stephanie
Thillai Sakthi
Ranch Hand

Joined: Jun 17, 2000
Posts: 102
Hi Grasson!
Why don't u give in a little bit code what u are trying to work on. so that it would be easy to understand what exactly is the problem.(Of course if u still persist with the problem.
Tks.
Kumaresan


Regards,
Shakthi
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: sound
 
Similar Threads
Regarding closing an applet
How to play sound from JMF??
Applet Button
Java Applet & Sound
db access through applet