Question

Is there a way to control the computer's actual volume in C# and display that in a vertical track bar??

I have tried practically everything, but there must be something I am missing.

Thanks.

Was it helpful?

Solution

Have you tried using the winmm.dll library through p/Invoke?

That's what this article recommends: http://www.dreamincode.net/forums/topic/45693-controlling-sound-volume-in-c%23/

He's (strangely) licensed his code with GPL, so I can't post it here. But it is pretty basic and simply calls various mixer methods.

There's another winmm wrapper with an MIT license you can get here: http://winmm.codeplex.com/. It will have the same underlying code, but you won't have to GPL your code when you use it.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top