Detecting if a microphone is available c#

Hemanth B 856 Reputation points

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?

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

Accepted answer
  1. Castorix31 69,256 Reputation points

    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