On 11/8/08, Noyan Tokgozoglu <[EMAIL PROTECTED]> wrote:
>
>  Hello all, I was writing code in a pyglet 1.0-1.1 mixed way, then when
>  I tried to play sounds I discovered that they loop eternally unless I
>  use the run() method.

Make sure you call each player's dispatch_events() method, as well as
pyglet.media.dispatch_events().

> However every update I need to assign a value to
>  a variable I call time, and I can't do that with a standard app loop.

pyglet.clock.schedule(func) will do this (it will also prevent the
loop from sleeping; use schedule_interval for a regular timed update).

>  So I customize my app, but now it doesn't even draw anything, and
>  sounds still loop eternally! Help! What must I do?

I couldn't see the problem immediately; if you still need help I
suggest posting a complete working example, and which OS you are
targeting.

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