Oct-21-2021, 11:49 PM
I am using Linux now and I was moving an old project onto my computer from a backup. The project was originally made on Windows. One of the features of the project was to play music, but no matter what I do I can't get it to load the file on my Linux PC.
self.m = QSound("sound.wav") #worked fine on Windows. On Linux I get: QSoundEffect(pulseaudio): Error decoding source file:sound.wav
I have tried:
QSound("./sound.wav")
setting the full path,
creating/using a resource file,
and using a .ogg file. All attempts give the same error. How do I get Qt to play sounds on Linux? (I am using Fedora)
P.S I can load image files just fine, but can't get sound files to work.
self.m = QSound("sound.wav") #worked fine on Windows. On Linux I get: QSoundEffect(pulseaudio): Error decoding source file:sound.wav
I have tried:
QSound("./sound.wav")
setting the full path,
creating/using a resource file,
and using a .ogg file. All attempts give the same error. How do I get Qt to play sounds on Linux? (I am using Fedora)
P.S I can load image files just fine, but can't get sound files to work.