OSX doesn't have the ability to record system audio built-in, but there are (additional) software that enables it. This article should help:

http://manual.audacityteam.org/o/man/tutorial_recording_computer_playback_on_mac.html

Hope it works for you!

/Björn