Phonon problem
Kevin Krammer
kevin.krammer at gmx.at
Fri Sep 4 11:12:37 BST 2009
On Thursday, 2009-09-03, Volker Härtel wrote:
> 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?
Have you tried creating the QFile on the heap so it doesn't get out of scope
during operations started by ->play()?
Cheers,
Kevin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-multimedia/attachments/20090904/e2542eaa/attachment.sig>
-------------- next part --------------
_______________________________________________
kde-multimedia mailing list
kde-multimedia at kde.org
https://mail.kde.org/mailman/listinfo/kde-multimedia
More information about the kde-multimedia
mailing list