| Subcribe via RSS

Find How To Record Sound in C#

June 9th, 2006 Posted in Programming, QnAp Asia


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.

Markus

  1. on June 12, 2006 at 10:15

    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.

    Markus

Most Commented Posts

3 Responses to “Find How To Record Sound in C#”

  1. Dennis Nilsson Says:

    \Samples\Managed\DirectSound\CaptureSound does still not work correctly, it works in debugging mode but not as a stand alone application, seems as there are not yet any good ways of capturing sound in c# :/


  2. Florin Says:

    The code works just fine. I used it on several occasions and it never fails. When opening the application sample you should choose the appropriate input capture device and you should have no problem. Good Luck!


  3. ergin Says:

    nice tutorial …


Leave a Reply

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word