aupyom
aupyom copied to clipboard
Loop sounds play
Add the possibility to play sounds in loop. An example of API could be:
s = Sound(...)
sampler.play(s)
s.loop = True
Hi! Is this implemented in a way? How can I loop the sound?
And thanks for the project. It works very well, all I would need on top of it is the looping functionality.
Hi @kr15h,
Thank you for your comment. Actually yes the loop feature has been implemented but I did not really update any doc or even close the issue. I must confess I lack time to properly maintain this repo.
If you download the last version from git, you should be able to run:
s = Sound.from_file('...')
sampler = Sampler()
s.loop = True
sampler.play(s)
Let me know if it works for you!