I would like to play sound in Python with these requirements:
- Multiple sounds at once
- Asynchronous
- Works on Linux
So here's an example of how this command should work:
while(True):
play(sound)
time.sleep(0.05)
This should massively spam the sound, EXACTLY 20 times a second
So far, I've tried: PyDub, PlaySound, PyGame.mixer (with channels)
PyGame did succeed in being asynchronous, but none of these were able to play the same multiple sounds at the same time, for me
Testing done on Linux, Python 3.5.2
Both solutions for Py2 and Py3 are welcome