How to control sound volume in .NET 3.5?

I want to create a volume slider for my application. I do not mind whether it controls the main volume or the volume of the program, but I do not want to use pinvoke if there is an alternative. I am using C # with .NET 3.5.

+3
source share
1 answer

As mentioned in the question Changing the level of the master volume , there are two different APIs depending on your OS (Xp or Vista).

However, if you can call from your .net program, some of the winapi functions mentioned in this question, you will be able to implement what you are asking for.

+2
source

Source: https://habr.com/ru/post/1699673/


All Articles