Share via

Detecting if a microphone is available c#

Hemanth B 886 Reputation points
Jul 16, 2021, 8:27 AM

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.
11,359 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 88,061 Reputation points
    Jul 16, 2021, 8:41 AM

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.