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

QAudioSink Docs "Detailed Description" Example Code Broken

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.2, 6.5
    • 6.2.5
    • Documentation, Multimedia
    • None
    • Linux/X11

    Description

      In Documentation: Qt 6.2 --> Qt Multimedia --> C++ Classes --> QAudioSink (https://doc-snapshots.qt.io/qt6-6.2/qaudiodevice.html#QAudioDevice) the example code does not work... maybe I am missing something but I get the error:

      No type named 'defaultOutputDevice' in 'QAudioDevice'

      when trying to run:

      QAudioDevice info(QAudioDevice::defaultOutputDevice());

      I agree with the error. In browsing the docs I cannot find the type defaultOutputDevice. I believe this is supposed to be:

      QAudioDevice info(QMediaDevices::defaultAudioOutput()); 

      Am I missing something here? Also I apologize in advance if this is the wrong place to post issues like this.

      Attachments

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

        Activity

          People

            nick_bennett Nicholas Bennett
            nickrestiv Nick Restivo
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes