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

Incorrect Call to QAudioOutput::setVolume

XMLWordPrintable

    • 67be250fa (dev), b40915ec6 (6.10), 766f1b3d2 (6.9)

      This may be related to the issue observed in https://bugreports.qt.io/browse/QTBUG-98100.

      In a code snippet on https://doc.qt.io/qt-6/qmediaplayer.html, there's a code snippet under "Detailed Description" that includes the line
      audioOutput->setVolume(50);
      This does not work since QAudioOutput::setVolume() will expect a float argument between 0.0 and 1.0, not an integer.

      This is purely a documentation bug, the code snippet works fine if the "50" is replaced by "0.5".

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

            lexcaz Alexei Cazacov
            chrisv Chris von Toerne
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes