Phonon problem

Volker Härtel folkyvolk at gmx.de
Thu Sep 3 17:04:06 BST 2009


Hi,

I want to use phonon as backend for an audio-editor. It is important for me to 
stream the source (not only from files).

Why does the following code gives no sound:

QFile qf("test.wav");
Phonon::MediaSource s(&qf);
Phonon::MediaObject *m = Phonon::createPlayer(Phonon::MusicCategory,s);
m->play();


..but this code does:

Phonon::MediaSource s("test.wav");
Phonon::MediaObject *m = Phonon::createPlayer(Phonon::MusicCategory,s);
m->play();

Shouldn't it be the same result?

Volker



More information about the kde-multimedia mailing list