开发者

Mute application volume in win CE

开发者 https://www.devze.com 2022-12-25 15:56 出处:网络
I have developed a media based application that runs on a d开发者_Python百科evice with Win CE. I need to have a mute/unmute button for controlling the application volume. I have developed the app usin

I have developed a media based application that runs on a d开发者_Python百科evice with Win CE. I need to have a mute/unmute button for controlling the application volume. I have developed the app using .Net compact framework.


I've used waveOutSetVolume for mute in WinCE:

http://www.pinvoke.net/default.aspx/coredll/waveOutSetVolume.html


You cannot control the sound volume for certain application. What you could do is define a static Mute boolean. When it's set to true, the sounds are not being played.

OR

You could look for a custom library that allows playing audio files and controlling the volume - anyway, this isnt the case, if you are only interested in mute/unmute.

0

精彩评论

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

关注公众号