title: Get sample of sound from stereo mix in Windows
body: <p>Is there a way in Windows using C# to record a sample of the stereo mix?</p>
  
  <p>In other words, record all pings, beeps and music being played via any application? I've had a look at <a href="http://naudio.codeplex.com/" rel="nofollow noreferrer">NAudio</a> which will record the microphone as it's source, but I can't figure out how to point it at Windows' stereo mix?</p>
  
  <p>Or, if anyone knows, any pointers on how to target and record sound from a specific application? For this I'm only concerned with Vista or Windows 7, as both the aforementioned operating systems support mixing applications separately - so I wasn't sure if there was a way to tap into that.</p>
  
  <p>I've looked at WINMM and COREDLL too, but I'm a bit lost.</p>