How do I record the sound output from my mac? [duplicate]

Is there a way to either pipe the sound output of the computer to a file or record what the computer puts out? I know I could use a headphone to microphone cord, but I was hoping for a more elegant solution. Google doesn't give very good results.


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.