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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Have you tried using the
winmm.dlllibrary 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.