Thanks for your awesome MF.NET wrapper on windows media foundation. It works great. I did run into one little problem though. When using MF_SOURCE_READER_ASYNC_CALLBACK one has to call ReadSample with a bunch of NULL arguments, but your current API definition doesn't allow that (they are all out parameters). Changing them to IntPtr solves the problem, but that's not ideal for the non-async case obviously. I posted a sample using async recording here: https://github.com/clovett/WpfAudioLibrary
When using MF_SOURCE_READER_ASYNC_CALLBACK one has to call ReadSample with a bunch of NULL arguments, but your current API definition doesn't allow that (they are all out parameters). Changing them to IntPtr solves the problem, but that's not ideal for the non-async case obviously. I posted a sample using async recording here: https://github.com/clovett/WpfAudioLibrary
I posted a sample here: https://github.com/clovett/WpfAudioLibrary
cp.exe is really slow