Click here to Skip to main content
11,485,965 members (78,480 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
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 18-Jun-12 7:41am
Comments
SAKryukov at 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: bad
good
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.
  Permalink  
Comments
fsman102 at 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: bad
good
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,
  Permalink  
Rate this: bad
good
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,
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 8,819
1 OriginalGriff 8,047
2 Sascha Lefèvre 3,199
3 Maciej Los 2,886
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web04 | 2.8.150520.1 | Last Updated 19 Jul 2014
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

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