dolphone bubleine
dolphone bubleine

Reputation: 691

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

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

Answers (1)

Prahlad Yeri
Prahlad Yeri

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

Related Questions