Detecting if a microphone is available c#

Hemanth B 886 Reputation points
2021-07-16T08:27:20.43+00:00

Hi, I created an audio recorder in c# but I want it to display a messagebox if there is no audio input / audio output just like Windows 10 Voice Recorder. How am I supposed to do that.? Also how can I list out all the list of devices connected to the system in a listbox?

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,235 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 81,636 Reputation points
    2021-07-16T08:41:37.487+00:00

    With Core Audio APIs, like in the sample I posted in this thread Detect Audio on Windows 10
    (you can change EDataFlow)
    or another more advanced sample : Core Audio APIs test


0 additional answers

Sort by: Most helpful