Reputation: 691
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.
Upvotes: 3
Views: 694
Reputation: 3653
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.
Upvotes: 2