There are also tools such as Voicemeeter by VB-Audio Software (donationware), that allows you to create a virtual audio device you can then route your audio to. Then you cam select that audio cable to record from.
The software is also useful if you're streaming with people on TeamSpeak or Skype, etc.