Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I control audio volume in .NET 3.5?

Tags:

c#

.net

I want to create a volume slider for my application. I don't mind whether it controls master volume or program volume, but I don't want to use pinvoke if there's an alternative. I'm using C# with .NET 3.5.

like image 859
Simon Avatar asked Nov 18 '25 21:11

Simon


1 Answers

As mentioned in the Changing Master Volume Level question, there are 2 different APIs, depending on your OS (Xp or Vista).

Still, if you can call from your .net program some of the winapi functions mentionned in that question, you should be able to implement what you are asking for.

like image 96
VonC Avatar answered Nov 20 '25 10:11

VonC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!