I'm trying to play a simple wav file using the following code :

Qt Code:
  1. Phonon::MediaObject *music =
  2. Phonon::createPlayer(Phonon::MusicCategory, Phonon::MediaSource("/usr/lib/openoffice/basis3.1/share/gallery/sounds/drama.wav"));
  3. music->play();
To copy to clipboard, switch view to plain text mode 

and i'm getting this error :
Qt Code:
  1. (<unknown>:17501): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion `gst_uri_is_valid (uri)' failed
To copy to clipboard, switch view to plain text mode 

I got Amarok working with the xine backend, but NOT with gstreamer backend.

Unfortunatly, even if xine is default for Amarok, it appears that my application is trying to use GStreamer. How do I set the backend in the code?