Hi Luke,
That sounds like a reasonable idea. I actually found a commit last night
from Alex Holkner that adds a pyglet.media.PlayerGroup that does almost
exactly what I want.

http://groups.google.com/group/pyglet-commits/tree/browse_frm/month/2008-09/7c29475a555ccdf9?rnum=31&_done=%2Fgroup%2Fpyglet-commits%2Fbrowse_frm%2Fmonth%2F2008-09%3F

I grabbed the latest from svn and it seems to be working!
Thanks everyone!

On Sun, Oct 25, 2009 at 4:25 AM, Luke Paireepinart
<[email protected]>wrote:

> Is pyglet's audio player thread safe?  If so, you could launch 2 threads,
> and then have them both queue up the parts, then wait 'til they're both
> ready, and start playing, then check every second or whatever with the audio
> player to see what their current time is and if they're off sync by too much
> then pause one for some milliseconds or slow down the play rate?
>
>
>
> On Sat, Oct 24, 2009 at 11:27 PM, ClayRab <[email protected]>wrote:
>
>>
>> Hi everyone,
>> I'm writing a little game and it would be VERY nice to have
>> synchronized audio. I.E. two parts(instruments) from the same song
>> playing simultaneously. Can anyone advise me how to go about getting
>> this behavior?
>> Thanks in advance!
>> Clayton Rabenda
>>
>>
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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