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

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

XMLWordPrintable

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

      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

       

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes