API

Matthias Kretz kretz at kde.org
Tue Jul 10 14:05:37 CEST 2007


On Tuesday 10 July 2007, Richard wrote:
> Preroll should then happend upon MediaObject::setCurrentSource, is  
> that correct?

Yes.

> IMHO I think the user should be able to control this if he really  
> wants to, but the default should be to preroll unless otherwise  
> specified. E.g:
> void setCurrentSource(const MediaSource &source, bool preroll = true);

Could it be a property of the MediaSource?

source.setPreRoll(false); //defaults to true

Even if it's not a boolean flag in setCurrentSource but an enum it'd still be 
a bit awkward considering the MediaSource queue. OTOH what does preroll mean 
for a source in the queue. It's scheduled for gapless playback anyway...

Hmm, a property of the MediaObject?
media->setCurrentSource(":/music/foo.mp3"); // prerolls
media->setPreRoll(false);
media->setCurrentSource(":/music/bar.mp3"); // does not preroll

-- 
________________________________________________________
Matthias Kretz (Germany)                            <><
http://Vir.homelinux.org/
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/phonon-backends/attachments/20070710/7c96f313/attachment.pgp 


More information about the Phonon-backends mailing list