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. Need some clarification about the new audio-device management in Qt 6.
Qt 6.11 is out! See what's new in the release blog

Need some clarification about the new audio-device management in Qt 6.

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 391 Views 2 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.
  • StokestackS Offline
    StokestackS Offline
    Stokestack
    wrote on last edited by Stokestack
    #1

    I'm porting a project from Qt 5 to Qt 6, and I've encountered a few issues with audio devices.

    There used to be a way to acquire the "nearest" audio format to the one you've requested, if a device didn't support the requested one. But this method seems to have been removed, although the documentation still refers to it (but doesn't attempt to call it)

    There also used to be a way to set the Endianness of the audio samples (setByteOrder()), but this too seems to have disappeared.

    I'm also perplexed as to the relationship between QAudioInput and QAudioSource. Previously we used QAudioInput, but its functionality seems to have been moved to QAudioSource. So why does QAudioInput still exist?

    Any insight appreciated!

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

      Hi,

      To the best of my knowledge:

      • QAudioInput allows to manipulate a QAudioDevice attached to a QMediaCaptureSession
      • QAudioSource is an audio source that is feed by a QAudioDevicr

      The new implementation of the module is more akin to a multimedia pipeline like you can find in GStreamer.

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

      StokestackS 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        To the best of my knowledge:

        • QAudioInput allows to manipulate a QAudioDevice attached to a QMediaCaptureSession
        • QAudioSource is an audio source that is feed by a QAudioDevicr

        The new implementation of the module is more akin to a multimedia pipeline like you can find in GStreamer.

        StokestackS Offline
        StokestackS Offline
        Stokestack
        wrote on last edited by
        #3

        @SGaist Thanks for that info.

        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