473,626 Members | 3,063 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 10712
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.publi c.win32.program mer.directx.man aged 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******@whele n.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
2102
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 Form1 we place Microsoft Agent Control 2.0 with name AxAgent1. 4. We double-click on Form1 and in the appeared procedure write the following code: Dim myGenie As AgentObjects.IAgentCtlCharacterEx Const DATAPATH_1 As String = "genie.acs"
2
14433
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 command (if there is, please let me know). So the next option would be to write a small .net program that would do it and run that via task scheduler. How would you mute the volume in code in the vb.net program? I'm not quire sure where to get...
1
5928
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. Thanks!
2
4768
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 muted from outside the app (by the user or another program), so I can display this in my own app. Is there some windows message which is broadcast when a mixer is muted? Thanks,
1
2394
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 is i cant take input in my program from a microphone. suppose i say "one" in microphone then my program recognize the word and give output through printer port. i can give output but input is a problem for the time being. if u wish, i can post my...
3
9613
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 koroake however i have been unable to get help on such a topic please help me is it possible to get some sort of script that just lets me talk through a microphone and come out of the speakers? thanks in advance i would prefer this to be a code...
0
4904
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 am attaching my code below. package
0
2555
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 video will be automatically muted. Setting the volume to go to 0 is fine, but I can't figure out how to set the mute button to automatically go to it's "muted" state and return to it's "non-muted" state when clicked and rest the volume... any...
1
3450
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 music. So I was looking for any way to mute external programs programmatically, using C#. Anyone please? Thank you in advance :) PS: Please excuse eventual poor English, as I am Norwegian :)
0
8196
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8701
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8364
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8502
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6122
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4196
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2623
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 we have to send another system
1
1807
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.