questions about CD audio changing track

Luc Menut lmenut at mandriva.org
Sun Oct 4 22:00:17 UTC 2009


Hi,

Mark Kretschmann a écrit :
> On Mon, Sep 28, 2009 at 9:24 AM, Luc Menut <lmenut at mandriva.org> wrote:
>> Nikolaj Hald Nielsen a écrit :
>>> The reason for calling slotAboutToFinish() is that Phonon does not
>>> automatically stop after playing one track on a CD,
>> It doesn't stop after playing each track because phonon uses autoplay by
>> default.
>>
>> I think you should try to disable autoplay - setAutoplayTitles(false).
>> Without autoplay, the mediaobject should emit signals aboutToFinish and
>> finished at the end of each track and paused.
>>
>> http://doc.trolltech.com/4.5/phonon-mediacontroller.html#details
>> http://doc.trolltech.com/4.5/phonon-mediacontroller.html#autoplayTitles
>> http://doc.trolltech.com/4.5/phonon-mediacontroller.html#setAutoplayTitles
>>
>>> so if your CD
>>> tracks in the playlist are not in the same order they are on the CD,
>>> or are mixed up with non CD tracks, it will cause issues.
>>>
>>> You are right that playing consecutive tracks off a CD should be
>>> handled more gracefully, as there is currently also a "gap" in
>>> playback when advancing to the next track that really does not need to
>>> be there. The thing is that getting the engine controller to know
>>> whether the next track is the consecutive track on a CD is slightly
>>> tricky and something I did not have time to implement for 2.2.0. It is
>>> on my todo list though.
> 
> Thanks for the information, Luc. As you seem to know a lot about
> Phonon,

no, I've just tried to fix some bugs in phonon-gstreamer!!

> would you like to create a patch for us?
> 

In attachment, you'll find a patch that fixes the bug I have with 
phonon-gstreamer; it just adds a test to avoid a loop if titleChanged 
signal is emitted just after titleChanged is reconnected to 
slotTitleChanged.
I could not use setAutoplayTitles(false) for now, because it doesn't 
work correctly with phonon-xine. I don't know why!!

> This would be nice, as we're generally very busy with many other
> things. So much to do :)
> 

regards,
Luc

-- 
Luc Menut
-------------- next part --------------
A non-text attachment was scrubbed...
Name: amarok-2.2.0-fix-CD-titleChanged.patch
Type: text/x-patch
Size: 1673 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/amarok/attachments/20091005/73eb4ab7/attachment.patch>


More information about the Amarok mailing list