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#
  4. Ho to detect Sound Device?

Ho to detect Sound Device?

Scheduled Pinned Locked Moved C#
question
3 Posts 3 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.
  • B Offline
    B Offline
    bahman2000b
    wrote on last edited by
    #1

    How can I detect the sound device? Which "namespace" is required? and what type is its input and output? is it binary? Thank you too much. Bahman

    E M 2 Replies Last reply
    0
    • B bahman2000b

      How can I detect the sound device? Which "namespace" is required? and what type is its input and output? is it binary? Thank you too much. Bahman

      E Offline
      E Offline
      Ed Poore
      wrote on last edited by
      #2

      You'll probably need to go through WMI if you want to enumerate the sound devices.  After that I don't know and don't have the time at the moment to look into it.

      1 Reply Last reply
      0
      • B bahman2000b

        How can I detect the sound device? Which "namespace" is required? and what type is its input and output? is it binary? Thank you too much. Bahman

        M Offline
        M Offline
        mav northwind
        wrote on last edited by
        #3

        Don't know if WMI will be of any help, but in general there are no built-in classes for this in the framework. You could look into managed DirectX or use p/invoke to call the waveIn*, waveOut* and mixer* functions from winmm.dll.

        Regards, mav -- Black holes are the places where God divided by 0...

        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