Details
-
Bug
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
-
6.9
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:
- Have a sound file on disk, somewhere accessible by your application
- Open up a QML project with a SoundEffect item
- Set the source URL to your file on disk
- 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
Gerrit Reviews
For Gerrit Dashboard: QTBUG-134645 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
635749,3 | SampleCache: replace QWaveDecoder with dr_wav | dev | qt/qtmultimedia | Status: NEW | 0 | 0 |