Changing mic levels through C++

I'd like to create a simple program on Linux in order to adjust and fix the microphone level setting.

Use-case example: when I speak on the mic on Zoom, for some reason my mic levels drop by itself. I'd like my program to, whenever my Mic level goes below 0.5, automatically revert it to 0.7 (for example).

Problem is: I don't know how to access these configurations on Linux with C++. I thought about using bash commands within my C++ programs but still need to read the mic level setting. How can my C++ program access these microphone audio settings, read and change them?

Thank You!
What OS and compiler are you using?

Depending on your OS, you can just access your system settings and set the microphone input to a certain level.
Topic archived. No new replies allowed.