I wonder if it is correct to play a sound file stored in application resource like this:
The device escalates a QMediaPlayer::ResourceError followed by a QMediaPlayer::AccessDeniedError.Code:const QUrl url = QUrl::fromLocalFile(":/res/snd/sound.wav")); mPlayerControl->setMedia(QMediaContent(url), NULL);
The code works if the url references a file on a storage (e:\\Music\\sample.mp3).
Should I use QAudioOutput instead? but that case how volume level can be controlled?



