469,156 Members | 2,192 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,156 developers. It's quick & easy.

Mute Microphone

It's my understanding in order to mute the pc microphone
from c# requires DirectX 9.

Could anyone confirm this for me, and provide examples or
technicle refrences where it may be discussed?

Thanks,
Ken Lemieux
Nov 15 '05 #1
1 9860
AFAIK, there is no .NET builtin function for manipulating microphone mute.

I'm not certain that there's a directx9 managed wrapper for mute / unmute of
mic either (since DirectSound hasn't been wrapped). You can use DirectX9
still, just not all through managed code.

You might want to look at the ng
microsoft.public.win32.programmer.directx.managed to see if there's anything
there. It's not a terribly active group (averages 3-4 new threads a day)
but it would be the place to go to see if it is possible with DirectX9 and
possibly how.

Here's some C++ code that does it without using directx 9. You should be
able to do something similar with P/Invoke. I'm not very familiar with MFC,
though, and when I looked at the code, decided it wasn't worth it for me.
Hopefully you can parse through it to find what you need:

http://www.codeproject.com/audio/admixer.asp

--
Mike Mayer
http://www.mag37.com/csharp/
mi**@mag37.com
"Ken Lemieux" <kl******@whelen.com> wrote in message
news:00****************************@phx.gbl...
It's my understanding in order to mute the pc microphone
from c# requires DirectX 9.

Could anyone confirm this for me, and provide examples or
technicle refrences where it may be discussed?

Thanks,
Ken Lemieux

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Bob Day | last post: by
1 post views Thread by Jesse Aufiero | last post: by
2 posts views Thread by vinnycoyne | last post: by
1 post views Thread by rajibnsu | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
1 post views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.