PDA

View Full Version : Multiple sound files in Phonon Audio



brent99
8th March 2010, 21:26
I'm having an issue with Phonon (linux) where I can play a sound file repeatedly but when I issue:

mediaObject->setCurrentSource(Phonon::MediaSource("wave2.wav"));

again it siezes up. And I can only play the sound file repeatedly if I do

mediaObject->stop(); followed by mediaObject->play();

My backend appears to be gstreamer libraries. Anyone else experience anything like this? It seems rather sensitive and cranky. I've played also with the queue function without any noticeable difference.

I also can't seem to get the resource.qrc file working using Phonon::MediaSource(":/sounds/mywave.wav") vs a straight path for the sound source, even though I am using the resource file just fine for images.

Help?