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:
Qt Code:
  1. Phonon::AudioOutput *audioOutput;
  2. Phonon::MediaObject *mediaObject;
To copy to clipboard, switch view to plain text mode 
Then in my *.cpp file:
Qt Code:
  1. audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this);
  2. mediaObject = new Phonon::MediaObject(this);
  3. Phonon::Path path = Phonon::createPath(mediaObject, audioOutput);
  4.  
  5. mediaObject->setCurrentSource(Phonon::MediaSource(":/sounds/file.wav"));
  6. mediaObject->play();
To copy to clipboard, switch view to plain text mode 
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.
Which can be the problem?

Regards