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

SoundEffect decoding error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.9
    • Multimedia
    • macOS

    Description

      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.

      Attachments

        For Gerrit Dashboard: QTBUG-134645
        # Subject Branch Project Status CR V

        Activity

          People

            npskalerud Nils Petter Skålerud
            npskalerud Nils Petter Skålerud
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change