B
B
Ben_r0072018-11-27 10:46:12
C++ / C#
Ben_r007, 2018-11-27 10:46:12

How can I record audio in C#?

I have a program developed in C# which has a text field and handles two hotkeys.
My program needs to record audio from a microphone. The first hotkey starts recording, the other stops.
How can I implement audio recording in C#?
I know about 3 options. First, using NAudio.
I found old source code but it doesn't work now.
The second, using winmm.dll. But as a result, I get low quality sound.
Third, using DirectSound. But I have not seen examples of this.
Please tell me how can I record high quality audio in C#!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question