Get the system volume output level.

InsensitiveLasagne 21 Reputation points
2021-06-03T04:50:15.987+00:00

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:
101962-image.png

Windows 10:
101971-image.png

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
0 comments No comments
{count} votes

Answer accepted by question author
  1. Xiaopo Yang - MSFT 12,736 Reputation points Microsoft External Staff
    2021-06-04T02:48:48.62+00:00

    According to Peak Meters and this thread, the EndpointVolume API includes an IAudioMeterInformation interface to support Windows applications that display peak meters.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.