This few days I’ve been searching for how to record sound in C#. After doing some searching on the Internet I found DirectX SDK. Unfortunately the documentation and example of DirectX SDK are writen in C/C++ which is diferrent with C# so I get confused on how to implement it in C#.
I’m still searching for an example on the Internet, I hope I can found one that give a good and easy example.
It seems that I didn’t go thoroughly on DirectX SDK installation directory as this morning I found an example of C# code for capturing/recording sound in ‘\Samples\Managed\DirectSound\CaptureSound’ directory.
Although the code not working correctly. I got some error when running it and the program can’t capture sound, but I’m a little bit glad because at least I have an example.