Click here to Skip to main content
15,884,176 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How can I unmute audio output device in MFC? I'm able to set volume through code but not able to unmute audio output device.
Posted
Updated 1-May-13 23:30pm
v4
Comments
max_nowak 30-Apr-13 6:49am    
Most probably there's some WinAPI function for this purpose. Found this after quickly googling the issue:
http://blogs.msdn.com/b/larryosterman/archive/2007/03/06/how-do-i-change-the-master-volume-in-windows-vista.aspx
Leo Chapiro 30-Apr-13 6:51am    
What are you speaking about, dude? :)

1 solution

Hi
You can do it with mixerSetControlDetails API in MFC I suggest you go to this link :
mixerSetControlDetails[^]

However you can use it from C# and you don`t need use MFC unless you have. for example you can call this API from c# with DllImport:

C#
[DllImport("winmm.dll")]
private static extern int mixerSetControlDetails(int hmxobj, ref MIXERCONTROLDETAILS pmxcd,
    int fdwDetails);


Best Regards.
 
Share this answer
 
Comments
MuraliChagarlamudi 27-May-13 2:08am    
It's not working....Thanks for u r response

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