*.wav -Datei mit Phonon abspielen
Verfasst: 27. Mai 2009 22:41
Hallo!
Ich probiere gerade Phonon aus und bin leider nicht erfolgreich. Folgende Zeilen habe ich
programmiert:
MediaObject *media = new MediaObject(this);
media->setCurrentSource(MediaSource(QString (":/audio/ding.wav")));
media->play();
Das lässt sich problemlos kompilieren und linken, aber beim Programmstart (QApplication,
mit GUI) erhalte ich folgende Warnings:
WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names through the DBUS interface
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
... und die *.wav -Datei wird nicht abgespielt.
Was fehlt noch an meiner Programmierung? Funktioniert Phonon nur mit einer
QCoreApplication? Es muss doch irgendwie gehen!
Ich probiere gerade Phonon aus und bin leider nicht erfolgreich. Folgende Zeilen habe ich
programmiert:
MediaObject *media = new MediaObject(this);
media->setCurrentSource(MediaSource(QString (":/audio/ding.wav")));
media->play();
Das lässt sich problemlos kompilieren und linken, aber beim Programmstart (QApplication,
mit GUI) erhalte ich folgende Warnings:
WARNING: Phonon needs QCoreApplication::applicationName to be set to export audio output names through the DBUS interface
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
... und die *.wav -Datei wird nicht abgespielt.
Was fehlt noch an meiner Programmierung? Funktioniert Phonon nur mit einer
QCoreApplication? Es muss doch irgendwie gehen!