Click here to Skip to main content
15,850,359 members
Please Sign up or sign in to vote.
5.00/5 (3 votes)
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

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.
 
Share this answer
 
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.
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,
 
Share this answer
 
Hi,

Just found a link that talks about something similar;

Vista Core Audio API Master Volume Control[^]

Best regards,
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900