PulseAudio + Phonon curious issue
Harald Fernengel
harry at kdevelop.org
Mon Jan 11 15:38:46 GMT 2010
Hi,
the N900 currently uses an older PulseAudio version (0.9.15), which doesn't
feature the device-manager extension.
I've created a small patch for Phonon (see attachment) that falls back on
creating the "fake" audio outputs.
Now I'm facing the problem that I can play sounds only when there's no main
event loop active.
In other words, my hello-world Phonon app works when I do:
myMediaObject->play();
app.exec();
But if I reverse the order, nothing is played:
QTimer::singleShot(3000, myMediaObject, SLOT(play()));
app.exec();
Enabling the debug logging for PulseAudio, I'm getting the following in the
working case:
"PulseSupport(2): Setting role to music for streamindex
{a969b636-0000-4000-916e-317fe741235f}"
"PulseSupport(2): Found PulseAudio stream index 1213 for Phonon Output Stream
{a969b636-0000-4000-916e-317fe741235f}"
And the following output in the non-working case:
"PulseSupport(2): Setting role to music for streamindex {c7b8603b-0000-4000-
aec9-a91b53ce69ff}"
"PulseSupport(2): Found PulseAudio stream index 1221 for Phonon Output Stream
{c7b8603b-0000-4000-aec9-a91b53ce69ff}"
"PulseSupport(2): Phonon Output Stream {c7b8603b-0000-4000-aec9-a91b53ce69ff}
is gone at the PA end. Marking it as invalid in our cache as we may reuse it."
To me, it looks like some kind of race condition, but I know too little about
Phonon or PulseAudio to figure out why. Any help appreciated :)
Thanks,
Harald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pulseaudio.patch
Type: text/x-patch
Size: 7391 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-multimedia/attachments/20100111/4119396d/attachment.bin>
-------------- 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