By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,677 Members | 1,298 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,677 IT Pros & Developers. It's quick & easy.

Mute Microphone

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
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.