Setting system recording level in vb.net

1.1k views Asked by At

Clicking the speaker icon in the taskbar, then recording devices, then microphone, then level, I can see the recording level and change it manually if necessary.

I would like to change, set or get this number programmically in vs 2010 vb.net

I have tried using Mark Heath's NAudio to get or set this number, but his code is not in vb, and I can't seem to get it converted to make it work.

Can anyone help me just find a simple way to set and get this value?

I have been all over the internet for weeks, so I probably read everything a search engine can provide.

Thank you so much for your help.

1

There are 1 answers

0
DarkUrse On

Use mixerGetControlDetails / mixerSetControlDetails API calls to get and set any volume level, whether it is input level or output level.

I remember seeing a nice example on how to make this work ( see this article ), the idea being to talk directly to the "Windows Mixer Control" via these API calls.

Hope this helps.