I'm still investigating the issue with playing multiple sounds on PulseAudio.
Benjamin, if I try to use a list of Players, instead of using fire-and-forget players, I still have the sound problem. Could you please try again on your end and let me know if this is indeed the case. Maybe also create more players - say 20 instead of 5 - to allow a lot of players to play together. I would also recommend increasing the duration of the notes in synthesizer.py to have the time to play enough Player simultaneously. I also noticed a problem in examples/noisy/noisy.py. With PulseAudio it seems that the sound is cut too ealry and I don't hear correctly the sound. Could you please also let me know if you've got the same problem? I must say I've spent hours on this but I don't seem to find the culprit. The thing that worried me in the PulseAudio Stream documentation <https://freedesktop.org/software/pulseaudio/doxygen/streams.html> was : *Note: there is a user-controllable slider in mixer applications such as pavucontrol corresponding to each of the created streams. Multiple (especially identically named) volume sliders for the same application might confuse the user. Also, the server supports only a limited number of simultaneous streams. Because of this, it is not always appropriate to create multiple streams in one application that needs to output multiple sounds. The rough guideline is: if there is no use case that would require separate user-initiated volume changes for each stream, perform the mixing inside the application.*Still digging... Dan -- 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 https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
