Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any way to read the current level of volume being sent to the speakers?

Tags:

c#

.net

I want to make a volume leveler so that I don't have to constantly jocky the volume down during loud scenes and up during dialog. Ads on Pandora blasting my ear drums is also annoying.

Is there any way to get what volume is being sent to the speakers? If I can get that number I can turn the volume up and down programatically.

like image 841
dolphone bubleine Avatar asked Jan 27 '26 18:01

dolphone bubleine


1 Answers

You can try the PInvoke command waveOutSetVolume for this purpose:

http://pinvoke.net/default.aspx/winmm/waveOutSetVolume.html

There is also a corresponding waveOutGetVolume to read the current volume.

like image 183
Prahlad Yeri Avatar answered Jan 30 '26 07:01

Prahlad Yeri



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!