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

QAudioOutput, QAudioInput and by extension QSoundEffect don't use the correct default device

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.1.1
    • 5.0.2
    • Multimedia
    • None
    • Windows 7
      Windows XP
      Mac
    • f424e8249b7b83d7d8f5a353161d2cc093840beb

    Description

      QSoundEffect does not actually play sound. Additionally, there is no output indicating errors.

      This can be verified most simply by using a QML SoundEffect element, pointing it to an audio file and playing it. Although this issue occurs if using the QSoundEffect class directly in C++.

      The problem is that QAudioOutput (used by QSoundEffect on Windows) picks the first available output device as the default one instead of checking what is the system default. The problem is the same for QAudioInput.

      Attachments

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

        Activity

          People

            ylopes Yoann Lopes
            gilgrum Jason Bridenstine
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes