wood burning stoves 2.0*
The moose likes Game Development and the fly likes browsers, sounds and media players Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Game Development
Bookmark "browsers, sounds and media players" Watch "browsers, sounds and media players" New topic
Author

browsers, sounds and media players

Tom Clement
Greenhorn

Joined: Mar 21, 2004
Posts: 26
I tried this question in other forums with no responses, maybe
I've been in the wrong ones.

One of my applets, one that uses a few sound clips, takes control
of my sound device and won't return control until the browser's closed.
Even if you go to another website! I'd like to know if I'm missing some code, besides "stop" which would force the applet to relinquish control.

here's the basic code:

public void playsound(String soundeffect)
{
soundfile = getAudioClip(getCodeBase(),soundeffect);

if(soundfile != null)
soundfile.play();


}//end playsound

Can anyone help? Thanks, Tom
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: browsers, sounds and media players
 
Similar Threads
Java sound-err->Windows Media Player cannot pla
Sound multiplies with clicks?
Concatenate audio wave
Stopping a looping javax.sound.sampled audio clip
java sound/windows media player