473,499 Members | 1,593 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 10685
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2090
by: Dr. Zharkov | last post by:
Hello. The following program does not work for me: 1. We load components of Microsoft Agent and disconnect a computer from Internet. 2. In VB .NET we create the project, appears Form1. 3. On...
2
14409
by: Bob Day | last post by:
Using VS 2003, VB. Net, MSDE... Usining task sheduler, I wish to mute the volume in the .bat file that task scheduler runs (windows XP Pro). I don't see anyway to do this via a .bat line...
1
5891
by: Jesse Aufiero | last post by:
Can .net managed code (preferably VB) be used to temporarily mute the system sound? If not, what are the APIs? I have had limited success in finding this information thru msdn or google searches....
2
4743
by: vinnycoyne | last post by:
Hi there, I am implementing a mute button on my application which successfully changes the mute status of the mixer in windows. I would like to know if there is a way to detect the mixer being...
1
2379
by: rajibnsu | last post by:
Hi, this is abu syed khan again. i want to write a program in c# that takes input from microphone and then give output through printer port. i can give output through a printer port. but the problem...
3
9578
by: Porkie999 | last post by:
hi i created a program in vb.net 2005 that is meant to allow microphone activity i.e you read the lyrics to a song on the screen and you are meant to be able to sing to it through a microphone like...
0
4895
by: roopaloswal | last post by:
Hi All, I need to record audio captured from microphone to the local file system .Is it possible? I am trying to use NetConnect() to connect to local file system. But its throwing error. I...
0
2537
by: streammalvern | last post by:
I created a video using a pre-made fla skin that I edited so that it only shows the play/pause, stop, seek, mute, and volume features. It all works fine, however I was asked to have it set that the...
1
3433
by: Kartoffelen | last post by:
Hi! I got this game I'm playing, and it contains this really annoying music, and I like to listen to real music while playing games. Of some reason, theres no mute button I can use to turn of this...
0
7132
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7009
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7178
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6899
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7390
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5475
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1427
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
302
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.