• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

browsers, sounds and media players

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic