Click here to Skip to main content
14,428,673 members
Rate this:
Please Sign up or sign in to vote.
See more:
Hello everyone,
I wanted to ask a question, I have an application and I wanted to lower the volume of only the application not master volume of windows.Is there anyway do to it.
Btw Im playing a wav file in the background.

Thanks.
Posted
Comments
Sergey Alexandrovich Kryukov 18-Jun-12 13:03pm
   
I appreciate this question, my 5.

I hope I re-addressed this question to a right person:
http://www.codeproject.com/Articles/22953/A-Synchronized-Volume-Control-for-your-Application?msg=4284245#xx4284245xx.

--SA
Rate this:
Please Sign up or sign in to vote.

Solution 1

It seems as though the new sound APIs in Vista (and beyond) were rewritten but still have the same interfaces. That means that old code will still work with the new APIs. However, the one change that was introduced was to make the volume changes per-application instead of system-wide (via the master volume). Here is an article that talks more about that:

http://beta.codeproject.com/Articles/18520/Vista-Core-Audio-API-Master-Volume-Control[^]

It would seem as though you could use this to your advantage by writing your code to work to the old interface, thus making it application-specific. You would need to use it on a Vista or later machine but since it would still work on XP (just not be application-specific) it wouldn't be that big an issue (in my opinion). I don't know of anything that allows application-specific sound settings in XP.
   
Comments
Casey Sheridan 2-Jul-12 11:22am
   
I agree. I don't know of a way to do this in XP. Only in Vista/7/8.
Rate this:
Please Sign up or sign in to vote.

Solution 2

Tim Hi, the article link that you had pasted seems to be dead. Can you please post a new link?

http://beta.codeproject.com/Articles/18520/Vista-Core-Audio-API-Master-Volume-Control[^]

Thanks,
   
Rate this:
Please Sign up or sign in to vote.

Solution 3

Hi,

Just found a link that talks about something similar;

Vista Core Audio API Master Volume Control[^]

Best regards,
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100