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

[REG 5->6] API: missing setCategory(const QString &category) in QAudioSink

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.2, 6.3, 6.4
    • 6.2.0, 6.2.1, 6.2.2
    • Multimedia
    • None
    • Android

    Description

      In Qt 5.15.X the QAudioOutput class offered the setCategory(const QString &category) method to set the stream category.

      This is important for correctly playing audio through a bluetoothSCO (headset) connected to an android device, by using setCategory("voice").

      How can the same functionality be achieved in Qt 6.2.X using QAudioSink? If I've understood correctly, this is the class which replaced QAudioOutput in Qt6.

      https://doc.qt.io/qt-5/qaudiooutput.html

      https://doc-snapshots.qt.io/qt6-6.2/qaudiosink.html

       

      Attachments

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

        Activity

          People

            samuelmira Samuel Mira
            jubba Claudio Barutta
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes