Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Playing songs with Phonon
jeffsg605 last edited by
I'm trying to learn how to use Phonon to play music. I have this code:
sources.append(MediaSource("D:/Music/Lindsey Stirling/16. Lindsey Stirling - Crystallize.mp3"));
sources.append(MediaSource("D:/Music/Lindsey Stirling/11. Lindsey Stirling - Song of the Caged Bird.mp3"));
createPath(mediaObject, audioOutput); currentSource = 0; mo->setCurrentSource(sources.at(currentSource));
Then I have a next button which increments currentSource and calls mediaObject.play(); For some reason though, only one of the songs plays. Both files exists for sure but one just won't play. Any ideas on whats wrong or how to track it down? Thanks a lot.