Thanks!

However, I don't think I'm loading them simultaneously since it plays one and 
then waits for user input to verify that it is good audio. 

I'll try static source. 



> On Apr 22, 2015, at 3:18 PM, Ricky Ng <[email protected]> wrote:
> 
> I'm going to take a guess and say that decoding 10 files
> simultaneously may be causing the issue.
> 
> If you are loading a bunch of shorter sounds, maybe try using
> StaticSource instead?
> 
>> On Wed, Apr 22, 2015 at 4:08 PM, John Bent <[email protected]> wrote:
>> I have a large number of small mp3 files that I need to check individually.
>> In a python foreach file loop, I'm calling this function which uses pyglet:
>> 
>> def play(player,src):
>>  try:
>>    #music = pyglet.resource.media(src)
>>    music = pyglet.media.load(src, streaming=False)
>>    music.play()
>>    ans = raw_input("\tWas this sound good (r to replay, q to quit)?
>> [y|n|r|q]: ")
>>    if (ans == 'r'):
>>      return play(player,src)
>>    if (ans == 'q'):
>>      sys.exit(0)
>>    else:
>>      success = (ans == 'y')
>>  except pyglet.media.avbin.AVbinException, e:
>>    print "Exception playing file. Assuming bad."
>>    success = 0
>>  print "%s -> %d" % ( src, success )
>>  return success
>> 
>> 
>> It works great for about 10 files but then it just stops working without any
>> error indication that I'm noticing. It acts like it is playing the sounds
>> but there is just silence. Is there some resource I should be unloading or
>> deallocating or something? I'm on OS X and initially had to install AVBin to
>> get pyglet to work at all.
>> 
>> Thanks!
>> 
>> --
>> 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 http://groups.google.com/group/pyglet-users.
>> For more options, visit https://groups.google.com/d/optout.
> 
> 
> 
> -- 
> Incoherently,
> Ricky Ng
> 
> -- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "pyglet-users" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/pyglet-users/h8pBM1EPVa8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pyglet-users.
> For more options, visit https://groups.google.com/d/optout.

-- 
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 http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to