-1

I want to point out immediately that I do not want the level, every answer I've seen so far has to do with people wanting the level so they can make meters. I need to find out how to get the system volume.

The closest I have come is using this pinvoke

[DllImport("winmm.dll")]
public static extern int waveOutGetVolume(IntPtr hwo, out uint dwVolume);

But that only gets the audio of my application, I need the "master" system volume.

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Wobbles
  • 3,033
  • 1
  • 25
  • 51

1 Answers1

-1

Have you looked at the ISimpleAudioVolume interface? That lets you get the master volume.

SledgeHammer
  • 7,338
  • 6
  • 41
  • 86
  • It looks like what I want, but saw no usage example on MSDN so am lost as to implementation. – Wobbles Oct 03 '16 at 22:20
  • @Wobbles, looks pretty hairy, but here is some code: http://stackoverflow.com/questions/14306048/controling-volume-mixer – SledgeHammer Oct 04 '16 at 03:16
  • That pertains to application volume, but I actually found some code that showed its use for master volume buried in a forum. Now my next step is to find out if there is a window message or some other event I can attach to to know when it changes so I don't have to pool it. – Wobbles Oct 04 '16 at 11:42