aupyom icon indicating copy to clipboard operation
aupyom copied to clipboard

Loop sounds play

Open pierre-rouanet opened this issue 9 years ago • 3 comments

Add the possibility to play sounds in loop. An example of API could be:


s = Sound(...)
sampler.play(s)

s.loop = True

pierre-rouanet avatar Feb 08 '16 11:02 pierre-rouanet

Hi! Is this implemented in a way? How can I loop the sound?

kr15h avatar Oct 14 '19 19:10 kr15h

And thanks for the project. It works very well, all I would need on top of it is the looping functionality.

kr15h avatar Oct 14 '19 19:10 kr15h

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!

pierre-rouanet avatar Oct 21 '19 08:10 pierre-rouanet