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 specify the channel number of USB audio interface.

How to specify the channel number of USB audio interface.

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 1.4k 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.
  • T Offline
    T Offline
    tidbit
    wrote on last edited by
    #1

    I want to create a program to import audio signals from USB audio interface.
    I've read the Qt specifications,
    but I can't find a function to specify the channel number to be recognized.
    Is there a function to specify a channel other than channel number 1 in Qt?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Which OS are you on ?
      How is your card seen by the system ?
      What are you using to do the capture ?
      How does Qt get when you enumerate the devices from it ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tidbit
        wrote on last edited by
        #3

        Thanks for the reply.
        I am using Windows 10 and MacOS 10.14.
        On the USB audio interface I have, the "QAudioDeviceInfo" returns the following.

        supportedByteOrder : [LittleEndian][BigEndian].
        supportedSampleType : [SignedInt][UnSignedInt][Float].
        supportedSampleRates : [128000][32000][48000][64000][192000][96000][88200][44100][176400]]
        supportedChannelCounts : [1][2][3][4][5][6][7][8][9][10][11][12][13][14][15][16]
        supportedSampleSizes : [8][16][24][32][64].
        supportedCodecs : [audio/pcm]

        However, this audio interface is originally a 64-channel product,
        so I think the "supportedChannelCounts" number is wrong.

        No matter how I set it, only the input of channel number 1 was recognized.
        Does this mean that Qt can't properly recognize USB audio interfaces with more than 16 channels?
        I would like Qt to recognize a number other than channel number 1 and run the program.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Looks like the kind of hardware that is out of league for QtMultimedia.

          Depending on what you want to do next, I think that PortAudio is worth checking.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          T 1 Reply Last reply
          1
          • SGaistS SGaist

            Looks like the kind of hardware that is out of league for QtMultimedia.

            Depending on what you want to do next, I think that PortAudio is worth checking.

            T Offline
            T Offline
            tidbit
            wrote on last edited by
            #5

            @SGaist
            So that's what it was after all.
            I had expected that since there was no setting for it, but...

            Thank you very much for the good information!
            I'll check out PortAudio.

            D 1 Reply Last reply
            0
            • T tidbit

              @SGaist
              So that's what it was after all.
              I had expected that since there was no setting for it, but...

              Thank you very much for the good information!
              I'll check out PortAudio.

              D Offline
              D Offline
              DrSnowLabs
              wrote on last edited by
              #6

              @tidbit [a few years later] ... still get the same issue. no matter what device I chose, the max number of channels reported is always 16... did you have any luck with PortAudio?

              D 1 Reply Last reply
              0
              • D DrSnowLabs

                @tidbit [a few years later] ... still get the same issue. no matter what device I chose, the max number of channels reported is always 16... did you have any luck with PortAudio?

                D Offline
                D Offline
                DrSnowLabs
                wrote on last edited by
                #7

                https://code.qt.io/cgit/qt/qtmultimedia.git/tree/src/multimedia/darwin/qdarwinaudiodevice.mm#n36

                Hardcoded to 16 channels 96k... ?

                64113099-1e11-4a79-aa91-52a4beee24c7-image.png

                SGaistS 1 Reply Last reply
                0
                • D DrSnowLabs

                  https://code.qt.io/cgit/qt/qtmultimedia.git/tree/src/multimedia/darwin/qdarwinaudiodevice.mm#n36

                  Hardcoded to 16 channels 96k... ?

                  64113099-1e11-4a79-aa91-52a4beee24c7-image.png

                  SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  @DrSnowLabs Sounds like there might be something to improve :-)

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0

                  • Login

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