Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to read the USB audio device's VID & PID ?
QtWS25 Last Chance

How to read the USB audio device's VID & PID ?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 2 Posters 1.2k Views
  • 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.
  • S Offline
    S Offline
    Soul
    wrote on last edited by
    #1

    I have an USB audio deivce and I wan't to detect if it is inserted.
    I have tried the "QAudioDeviceInfo" class, but it seems the class can only obtain device name which is useless for me.

    A champion is someone who gets up even when he can´t.

    raven-worxR 1 Reply Last reply
    0
    • S Soul

      I have an USB audio deivce and I wan't to detect if it is inserted.
      I have tried the "QAudioDeviceInfo" class, but it seems the class can only obtain device name which is useless for me.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Soul
      you can try libusb, like described in this thread

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      1 Reply Last reply
      4
      • S Offline
        S Offline
        Soul
        wrote on last edited by
        #3

        Hi @raven-worx ! Thank you for your reply . I think there maybe a easier way which using the win32-API. but I think your solution is the best .

        A champion is someone who gets up even when he can´t.

        1 Reply Last reply
        1

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved