title: How do I record audio with C#/WPF?
body: <p>I have an application to which I want to add the ability to import small audio snippets directly from a microphone device of some sort.</p>
  
  <p>I already allow importing of pictures and this works okay with disk files and cameras since cameras magically become disk devices when you attach them so a file import method works for both.</p>
  
  <p>Audio however is slightly different. I've already allowed for importing audio files off the disk but I want to add the capability to directly record from a microphone to a disk file or in-memory buffer.</p>
  
  <p>Does C#/WPF provide an easy way to do this? What's a good way to add this functionality?</p>