Looping sounds inside python aud.

How would I go about looping a sound inside python, the simply ‘play’ makes it play the sound one over another,i just need to loop it.


When you use Audaspace to play a sound, it returns the sound’s handle. You can use the handle’s loop_count property to change the number of times that it loops, with -1 being indefinitely.

handle = device.play(sound)
handle.loop_count = -1 # Loop indefinitely

Thanks Lune! You always help me in python problems :slight_smile:

I had been wondering about this. Thanks SolarLune.