aspose file tools*
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 Java 8 in Action this week in the Java 8 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
 
 
subject: browsers, sounds and media players
 
Similar Threads
Concatenate audio wave
java sound/windows media player
Sound multiplies with clicks?
Java sound-err->Windows Media Player cannot pla
Stopping a looping javax.sound.sampled audio clip