Search code examples
c#windows-7sdkvolume

volume control in windows 7 c#


i know this topic has been discussed here before but i still can't get it to work. i just need to get the current volume in my machine (i'll start there and i guess expanding the functionality of my project will be easier after) using the win 7 SDK and without using code from published projects like this. should i add a particular reference to my project? use dllimport? any help would be appreciated


Solution

  • Maybe with this : http://msdn.microsoft.com/en-us/library/ms679138%28VS.85%29.aspx (ISimpleAudioVolume Interface)

    --EDIT --

    This project seems to contain what you are searching for.

    http://hintdesk.com/Web/Source/Adjust%20System%20Volume.zip

    If not, you can go look here : Get Master Sound Volume in c#

    or here : http://social.msdn.microsoft.com/Forums/en-US/isvvba/thread/05dc2d35-1d45-4837-8e16-562ee919da85

    But the best code I found about this always return to the link you gave in your question. Good Luck!

    --Edit2--

    Or you can use FMOD (c++) with the help of this : Using FMOD for C#?
    and this : http://sourceforge.net/projects/fmodnet/