Hi to all,
I have some problem using the Phonon module. I would use it to play an audio file.
This is the code I used.
In my *.h file:
Then in my *.cpp file:Code:
Phonon::AudioOutput *audioOutput; Phonon::MediaObject *mediaObject;
When I execute the code I don't listen nothing. Instead if I try to play the file with the phonon demo there is no problem.Code:
audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this); mediaObject = new Phonon::MediaObject(this); Phonon::Path path = Phonon::createPath(mediaObject, audioOutput); mediaObject->setCurrentSource(Phonon::MediaSource(":/sounds/file.wav")); mediaObject->play();
Which can be the problem?
Regards

