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. Pan / Balance control of multi-channel Audio

Pan / Balance control of multi-channel Audio

Scheduled Pinned Locked Moved General and Desktop
4 Posts 2 Posters 1.9k 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.
  • S Offline
    S Offline
    SlySven
    wrote on last edited by
    #1

    This may be a stupid question but where is the per channel level controls on the QMediaPlayerControl and other similar classes that process audio stream that can have more than one audio channel? Fair enough the "volume" control provides an overall gain control but how can I (re)position that audio stream say to achieve a "balance" control for a stereo audio stream - or if, say, I was writing a game, how can I position a (monoaural) sound effect within, say a four speaker arrangement to tell the player that he has just been shot in the back or right side? It seems that the controls that would be required for this are missing - or have I just been looking in the wrong part of the C++ API?

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

      Hi,

      Mixing audio channels is (at least currently) outside of Qt's scope

      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
      • S Offline
        S Offline
        SlySven
        wrote on last edited by
        #3

        Well "mixing" is a closely related function I suppose if one was dealing with more than one audio data source - but this is more a query of that somehow we do have a single control of the overall level of all channels of an audio stream but not a means of controlling the relative levels of each channel. I was looking for what https://bugreports.qt-project.org/browse/QTBUG-23808 calls "Panning Support" and I think the dropped Phonon had an Effect class that may have provided a way to do this.

        With regard to the "(at least currently)" are you aware of a specific Bug/Feature Request that is tracking this - I couldn't spot one but I may not have been searching for the right thing...

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

          No I'm not aware of a bug related to that

          As for Phonon, IIRC, there's a possibility to build it for Qt 5 if that would help your current project.

          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