开发者

How to control & adjust the sound volume in windows 7?

开发者 https://www.devze.com 2023-03-13 07:04 出处:网络
I woul开发者_C百科d like to control and adjust sound volume of windows 7 in C# Win Form? Any tips, how is this be done?Take a look here : http://www.geekpedia.com/tutorial176_Get-and-set-the-wave-soun

I woul开发者_C百科d like to control and adjust sound volume of windows 7 in C# Win Form? Any tips, how is this be done?


Take a look here : http://www.geekpedia.com/tutorial176_Get-and-set-the-wave-sound-volume.html

You can also use NAudio wich is a managed wrapper for the IAudioMeterInformation interface.

More info on IAudioMeterInformation interface : http://msdn.microsoft.com/en-us/library/dd368227%28VS.85%29.aspx

NAudio projet on CodePlex : http://naudio.codeplex.com/


You might need to use winmm API. You can try this link.

Volume Control

I have used NAudio for visualization. Not sure if that might help you. With WPF it should be fairly simple, you can either use MediaElement or MediaPlayer and bind it to a Slider.

0

精彩评论

暂无评论...
验证码 换一张
取 消