Recording “Stereo Mix” with Realtek

This is a technical post that will only be of interest to people who have been driven crazy by the same problem already. If you found this post by searching for something like “Realtek HD Audio Manager stereo mix” or “Realtek no stereo mix,” then you know what I’m talking about. (Just skip to the last paragraph for the solution.)