I am not familiar with the phonon.And following the advice of Qt documents,I use it in a function like this:
Phonon::MediaObject *music ;
music = Phonon::createPlayer(Phonon::MusicCategory,Phonon: :MediaSource(pathName));
music->play();
I will call this function with different pathName to play different music.I am afraid that maybe everytime I call Phonon::createPlayer(),it will create something in the memory,and it need to be deleted manually.
Am I right?Or what's the right way to use it?Thanks very much!
Bookmarks