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
2010-03-30 09:50:36
+2
A:
I've used waveOutSetVolume for mute in WinCE:
http://www.pinvoke.net/default.aspx/coredll/waveOutSetVolume.html
PhilMY
2010-03-31 06:50:48
native code link: http://msdn.microsoft.com/en-us/library/aa452464.aspx
Shaihi
2010-03-31 10:31:16