tags:

views:

85

answers:

2

I have developed a media based application that runs on a device 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.

A: 

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.

thelost
+2  A: 

I've used waveOutSetVolume for mute in WinCE:

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

PhilMY
native code link: http://msdn.microsoft.com/en-us/library/aa452464.aspx
Shaihi