Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to check if microphone connect to the machine in run time ?

How to check if microphone connect to the machine in run time ?

Scheduled Pinned Locked Moved C / C++ / MFC
questiontutorial
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    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

    CPalliniC M 2 Replies Last reply
    0
    • L Lost User

      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

      CPalliniC Offline
      CPalliniC Offline
      CPallini
      wrote on last edited by
      #2

      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

      In testa che avete, signor di Ceprano?

      M 1 Reply Last reply
      0
      • CPalliniC CPallini

        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

        M Offline
        M Offline
        Mark Salsbery
        wrote on last edited by
        #3

        CPallini wrote:

        you will need also a 'jack detection' software

        OMG don't get him started :rolleyes: :)

        Mark Salsbery Microsoft MVP - Visual C++ :java:

        1 Reply Last reply
        0
        • L Lost User

          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

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          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:

          E 1 Reply Last reply
          0
          • M Mark Salsbery

            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:

            E Offline
            E Offline
            EmoBemo
            wrote on last edited by
            #5

            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:

            M 1 Reply Last reply
            0
            • E EmoBemo

              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:

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              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:

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups