Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-120763

QAudio::convertVolume no longer available in QML

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • 6.9
    • 6.6.1
    • Multimedia
    • None
    • All

      The docs for the various audio related QML objects all explain that volume is linear and QAudio::convertVolume should be used:
      https://doc.qt.io/qt-6/qml-qtmultimedia-audiooutput.html#volume-prop
      https://doc.qt.io/qt-6/qml-qtmultimedia-audioinput.html#volume-prop

      However QAudio::convertVolume and the associated enums are not available in QML
      https://doc.qt.io/qt-6/qaudio.html#convertVolume

      In QtMultimedia 5.15 convertVolume and the enums were exposed to QML in a global QtMultimedia namespace
      https://doc.qt.io/qt-5/qml-qtmultimedia-qtmultimedia.html#convertVolume-method

      Something similar needs to be added to Qt6 so that QML can expose volume controls that scale logarithmically.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            artemiy Artem Dyomin
            rectalogic Andrew Wason
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes