Hi I tried to play a audio file in Qt 4.4 in windows XP using phonon classes (MediaObject,MediaSource,AudioOutput). The code gets compiled and ran but the audio file is not playing. I enabled the phonon support and setup the backend as well. Someone can please help me with this. i attached my code also for reference. Also i dont want to use QDesktopServices and all.
Phonon::AudioOutput *audioOutput=new Phonon::AudioOutput(Phonon::MusicCategory,this);
Phonon::MediaObject *mediaObject=new Phonon::MediaObject(this);
mediaObject->setTickInterval(1000);
Phonon::createPath(mediaObject,audioOutput);
Phonon::MediaSource source("D:\\CAT\\audioFile.mp3");
mediaObject->setCurrentSource(source);
mediaObject->play();