Simon
Simon

Reputation: 26013

How do I control audio volume in .NET 3.5?

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.

Upvotes: 3

Views: 1215

Answers (1)

VonC
VonC

Reputation: 1330052

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.

Upvotes: 2

Related Questions