Audio Component Failure
-
Hi all, i'm trying to add background music to a small application but i get this error:
I'm using Win7 and mingw
ASSERT: "!url.isRelative() && (QQmlFile::urlToLocalFileOrQrc(url).isEmpty() || !QDir::isRelativePath(QQmlFile::urlToLocalFileOrQrc(url)))" in file qml\qqmltypeloader.cpp, line 1639
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.this is the code:
Audio{
id: musicBkg
source: "file:///Users/COMPUTER/Documents/candycrush/candy-crush-like-master/sound/bkg1.wav"
autoLoad: true
autoPlay: false
volume: 1.0
loops: Audio.Infinite
}I tried to add to qrc but i got the same error as well.
What am i missing? thank you all
-
@Delavega77 hi
disk name is missing in the path
"file:///c:/Users/... -
@LeLev
thank your for the reply.
I already tried with "file:///c:/Users/... but i got always the same error