I'm not sure the exact cause of why this happens, so I'll try to explain the scenario:

When running Firefox, I open a java applet that uses sound. Works great. Then, when the applet is still running but is currently not playing any sound, I go to play some music from a live music streaming service based on Flash. I don't get any playback from the music service or any other flash app with sound, but the java app works fine. Any ideas why, and does anyone have a workaround?

Vice-versa the same effect happens but with the opposite programs -- the flash app which was started first has access to sound, but when I run the java app with sound, I don't get any sound from the java app.

Help? Thanks in advance.