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.
精彩评论