Pipe sound output to file?
You might want to take a look at Audio Hijack Pro which can record any audio you can hear on your computer. Free to try.

There's also the cheaper, simpler Piezo from the same company.