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

SoundEffect decoding error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 6.9
    • Multimedia
    • macOS
    • 55c66a1fa (dev), b701a68de (6.10)
    • Multimedia, weeks 18-19

      I've tested with WAV and MPGA files loaded from disk, and SoundEffect is unable to play these. The error message I get is the following:

      QSoundEffect(qaudio): Error decoding source qrc:/Users/nils/Documents/file_example_WAV_5MG.wav 
      

      Steps to reproduce:

      1. Have a sound file on disk, somewhere accessible by your application
      2. Open up a QML project with a SoundEffect item
      3. Set the source URL to your file on disk
      4. Call .play() on the SoundEffect

      I suspect it's related to how we resolve URLs under the hood. The emitted URL seems to include "qrc" seeming to indicate that we're looking into some embedded Qt resources, which we are not.

      Another improvement here is if we can get a more specific error "file not found" whenever we can tell this file does not exist.

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

            timblechmann tim blechmann
            npskalerud Nils Petter Skålerud
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes