Or another similar program? All I want to do is record the sounds coming from say firefox, or any other app, for use as samples in music. I need to do this in both windows and linux (ubuntu 9.10).

I have looked through the preferences of audacity but didn't find anything that let me select the system sound. Perhaps I overlooked it, because I was able to do this with earlier versions of audacity.