Hi,

The original SourceGroup was not very clear on its intent, but it was 
pretty specific about the fact that once a Source is played, it was 
discarded. So there was no possibility to do as you describe, ie. loop over 
a list of Sources.

This is something that could be done obviously. There is obviously a cost 
in terms of memory if we want to have this behaviour. Let's see what 
everybody thinks of it.

I would imagine that the Player.loop attribute would be used to tell the 
Player to loop over the whole Playlist, without discarding any previously 
played Source. If Player.loop is False, then the Sources are discarded from 
the Playlist after being played.
The Playlist would keep track of individual loop flags for each Source, 
that are set by client code when queuing a source on the Player: 
player.queue(music_theme, 
loop=True). Then when this source is being player, it will repeat 
indefinitely until the client calls player.next_source().

What do you think?

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to