According to Peak Meters and this thread, the EndpointVolume API includes an IAudioMeterInformation interface to support Windows applications that display peak meters.
Get the system volume output level.
I am working on a project where I need to get a value for the system's volume output level. To be clear, I am not referring to the level that the speakers are set to, but the level of the sound being played by the system at any instant. I am certain there's a way to get this because Windows 7 showed it as a green bar on the volume meter. Video editing apps, like Adobe Premiere Pro, have a measure of the volume that the media files are playing at any instant; I am looking for something similar, but for the whole system's audio.
Windows 7:
Windows 10:
I have searched a lot online and been through multiple threads on multiple forums. I think the method is specific to windows so I asked here. (I am familiar with python, C++ but I'll take the answer in any language at all.
Windows development | Windows API - Win32
-
Xiaopo Yang - MSFT 12,736 Reputation points Microsoft External Staff
2021-06-04T02:48:48.62+00:00