May 2019
Intermediate to advanced
542 pages
13h 37m
English
Yes. You'll need to use QMediaPlayer instead of QSoundEffect, or write a layer to decode the MP3 to WAV, because QSoundEffect cannot play compressed audio.
You need to convert the paths into QUrl objects, add them to QMediaPlaylist, set playbackMode to Random, then pass it to QMediaPlayer. The code looks like this:
playlist = qtmm.QMediaPlaylist() ...
Read now
Unlock full access