Oh, there was also a thread starvation issue.  That's why I had to add a 
sleep as well.

On Friday, November 30, 2012 8:02:59 AM UTC-8, Walter Woods wrote:
>
> AIF.  I found the problem though.  The openal driver isn't properly 
> releasing all buffers for whatever reason, which means that it's just 
> running out of buffers.
>
> See attached patch.
>
> On Sunday, November 25, 2012 4:49:11 PM UTC-8, Nathan wrote:
>>
>> What format of sound file are you using?
>>
>>
>> On Thu, Nov 22, 2012 at 1:35 PM, Walter Woods <[email protected]> wrote:
>>
>>> Hey, new to pyglet but I've been using it for a game on a newish Mac OS 
>>> X.
>>>
>>> While audio works, it frequently stutters and freezes the ENTIRE 
>>> APPLICATION graphically if I play too many sounds at once (even with a 
>>> forced 4-channel setup, where I don't let my app play more than 4 sounds at 
>>> once).  The application continues after all of the audio files have 
>>> finished playing, but it seems to have "continued" underneath - that is, 
>>> when it freezes, multiple updates happen, rather than just one update with 
>>> an absurdly large delta.  
>>>
>>> It's pretty disruptive and pretty sad to only play 4 sounds at a time 
>>> and still have some major performance issues... seems like a bug.  Anyone 
>>> seen anything like this?  And I'm loading my sounds like: 
>>>
>>> pyglet.media.load(soundFile, streaming = False)
>>>
>>> So it would seem to not be the streaming vs StaticSource thing.
>>>
>>> Any suggestions would be awesome, Thanks!
>>>
>>> Walt
>>>
>>> -- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "pyglet-users" group.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msg/pyglet-users/-/PHAwJ7iU8O0J.
>>> 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.
>>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pyglet-users/-/qtllIEcPbKwJ.
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