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. QAudionInout/Output and 24 bit audio
Forum Update on Monday, May 27th 2025

QAudionInout/Output and 24 bit audio

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 1.8k 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.
  • U Offline
    U Offline
    utcenter
    wrote on last edited by
    #1

    Has anyone had any luck getting those classes to work with 24bit audio?

    The device info says only 8 and 16 bit are supported, but the actual device supports 24bit audio just fine, which leads me to believe the Qt classes are far from polished, a suspicion reaffirmed by the fact that when I pass a 24bit format to nearestFormat() it returns a 8bit format, even when 16bit is supported. And I always thought 16 is closer to 24 than 8...

    1 Reply Last reply
    0
    • Chris KawaC Online
      Chris KawaC Online
      Chris Kawa
      Lifetime Qt Champion
      wrote on last edited by
      #2

      If you're on Windows AFAIK Qt uses the legacy "Windows Multimedia Extensions":http://en.wikipedia.org/wiki/Windows_legacy_audio_components#Multimedia_Extensions_.28MME.29 to detect supported formats. This API supports only up to 16 bit and only up to 44.1 kHz.
      Why Qt uses that? I don't know, but multimedia on Windows are a total mess even outside Qt. Microsoft can't seem to make its mind and the "officially recommended" API changed violently over the years. My guess is that MME is the safest, though not feature rich, common denominator.

      If you're not on Windows then sorry, I don't know ;)

      1 Reply Last reply
      0
      • U Offline
        U Offline
        utcenter
        wrote on last edited by
        #3

        Hmm, if it is MME that is being utilized, then I guess it makes no sense to use low level audio, since it will not offer latency benefits.

        It would be nice if Qt supported DirectSound and WASAPI and provided some choice which one to use.

        1 Reply Last reply
        0
        • Chris KawaC Online
          Chris KawaC Online
          Chris Kawa
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Since Vista DirectSound is layered on top of WASAPI and actually deprecated (although still widely used). It's not available on Windows CE and Windows Runtime, which Qt supports, so it would be wasteful to invest there. WASAPI on the other hand is not available on XP, which is supported too. I'm not sure what's the story with using these on MinGW, which is also supported. It's like I said, a mess.
          I don't think anyone is willing to maintain multiple backends for this. Qt already supports plethora of configurations on Windows and that's a drag. Just look how much confusion the ANGLE/OpenGL split did and how long it takes to piece it back together.
          Too much work for too few people affected I think. But that's just me saying. You might get a different story from the actual devs on the mailing list.

          1 Reply Last reply
          0
          • U Offline
            U Offline
            utcenter
            wrote on last edited by
            #5

            Well, it is not a big deal, after some pain I got RtAudio working with Qt with ASIO and WDM/KS. RtAudio has backends for linux and mac too.

            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