I am new to Linux and Ubuntu, i seem to be having issues switching between streaming audio and using my media player, if i close the application outputting audio and then open the other then it works but they can't function at the same time.

Is it something to do with the soundcard being assigned to a program, but only one at a time, if so, how can i fix this? It's just annoying having to close things the whole time.