开发者

Mute application volume in win CE

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜