Hey,

after many problems, I get phonon "working":

When I click on an area, a 1-second-sound should be played.

My problem is, that I get this warnings and a big latency (1 second or something like this), before playing the sound:

Qt Code:
  1. WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names through the DBUS interface
  2. Qt Application(5432) Phonon::KdePlatformPlugin::createBackend: using backend: "Xine"
To copy to clipboard, switch view to plain text mode 


My Phonon-specific code is this:

Qt Code:
  1. #include <phonon/audiooutput.h>
  2. #include <phonon/path.h>
  3. #include <phonon/mediaobject.h>
  4. #include <phonon/backendcapabilities.h>
  5.  
  6. // .....
  7.  
  8. Phonon::MediaObject *music =
  9. Phonon::createPlayer(Phonon::MusicCategory,
  10. Phonon::MediaSource("/home/fabi/Desktop/MobileDrumKit/MobileDrumKit/data/Music/15575_lewis_crash_bell.wav"));
  11. music->play();
To copy to clipboard, switch view to plain text mode 

I also tried to do this :

Qt Code:
  1. QList<Phonon::AudioOutputDevice> audioOutputDevices =
  2. Phonon::BackendCapabilities::availableAudioOutputDevices();
  3. Phonon::AudioOutput *audioOutput = new Phonon::AudioOutput;
  4.  
  5. audioOutput->setOutputDevice(audioOutputDevices[0]);
To copy to clipboard, switch view to plain text mode 

but no luck...

Thanks in advance.

Also, I want to know, how big the latency between clicking and hear the sound is usually.