On 12/11/07, Nathan <[EMAIL PROTECTED]> wrote:
>
> I'm currently using a Player with eos_action = 'next' to play a
> sequence of sounds.  When I need to stop what's currently queued and
> start a different sequence, I'm currently calling Player.pause(), and
> then throwing the player away and creating a new one.  Is there a way
> I could delete all the queued sounds on the existing player, so I
> don't have to repeatedly create new ones?

No, removing sounds from a queue is not at all feasible.  In your case
you should only queue the sounds your are committed to (e.g.,
immediately following), and queue the others lazily (for example, by
examining the current playback time, or handling on_eos).

Alex.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to