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

QAudioSink "failed to setup resampler" on start()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P3: Somewhat important
    • None
    • 6.4.1
    • Multimedia
    • None
    • Windows

    Description

      The following program:

      int main (int argc, char *argv[]) {
      
          QCoreApplication a(argc, argv);
      
          QAudioDevice device = QMediaDevices::defaultAudioOutput();
          QAudioFormat format = device.preferredFormat();
          QAudioSink *output = new QAudioSink(device, format);
          output->start();
      
          return a.exec();
      
      }

      Fails to start the output device, outputting:

      qt.multimedia.audiooutput: Failed to setup resampler

      The equivalent code on Qt 5.15 (using QAudioDeviceInfo and QAudioOutput) works fine.

      As a consequence, audio output is not possible at all in Qt6, which defeats much of the purpose of QtMultimedia.

       

      As an aside, there's a minor typo in that error message: "set up" is two words ("setup" is a noun).

      Attachments

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

        Activity

          People

            piotr Piotr Srebrny (Inactive)
            jasonc Jason Cipriani
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes