Fixing Audio in Ubuntu

A major problem that I have had for a while in Ubuntu has been the audio, especially when flash is involved. If I go to a web page that plays flash (e.g. youtube.com) Firefox takes control over all the audio on my computer. All other audio on the computer stops working. This is extremely annoying. One way to fix this is to close Firefox, but it sometimes takes a few minuets or it doesn't fix the problem at all.

Using the command "ps -aux | grep audio" showed me that a program pulseaudio is running. For a while I though pulseaudio was the problem because running "killall pulseaudio" would fix the problem. After doing some research I realized that pulesaudio is actually a powerful tool that I have just scratched the surface. By changed the "Audio output module" in VLC to "Pulseaudio audio output" I no longer have this problem between flash in Firefox and audio in VLC. Unfortunately I couldn't fix this problem with Amarok or Songbird, but this is at least a start. I will continue to investigate into this problem.