How to check if microphone connect to the machine in run time ?
-
I need to check in Run Time if in current machine that execute my application (exe file) has an active microphone. How can i do it ? :confused::confused::confused::confused: Thanks
Yanshof wrote:
How can i do it ?
Maybe with another post? :-D BTW what about a webcam pointing to the microphone plug (you will need also a 'jack detection' software)? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]modified on Wednesday, October 22, 2008 9:40 AM
-
Yanshof wrote:
How can i do it ?
Maybe with another post? :-D BTW what about a webcam pointing to the microphone plug (you will need also a 'jack detection' software)? :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]modified on Wednesday, October 22, 2008 9:40 AM
CPallini wrote:
you will need also a 'jack detection' software
OMG don't get him started :rolleyes: :)
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
I need to check in Run Time if in current machine that execute my application (exe file) has an active microphone. How can i do it ? :confused::confused::confused::confused: Thanks
Yanshof wrote:
How can i do it ?
Unless you have hardware that has a specific way of determining this, you can't. No sound hardware I've ever used was able to detect if a mic is plugged in or not. You could iterate through the available audio input devices and "listen" for background noise or something.
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Yanshof wrote:
How can i do it ?
Unless you have hardware that has a specific way of determining this, you can't. No sound hardware I've ever used was able to detect if a mic is plugged in or not. You could iterate through the available audio input devices and "listen" for background noise or something.
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
How come my DELL Inspiron B130 detects device when I plug something in the microphone plug and shows a dialog? And also how come my Skype understands when a microphone is plugged in or out ? :confused:
USB device? If so, USB devices are generally recognized when they are plugged in. 1/8" mini-plug into a sound card? If so, then unless the sound hardware has a mechanism to recognize a plugged in microphone then I stand by my previous reply.
Mark Salsbery Microsoft MVP - Visual C++ :java: