Sound.play method

play(self, looping: bool) -> None:

Plays this Sound.

If the sound is not fully loaded, the playback will delay until loading is complete.

Parameters

  • looping: bool

    if true, this Sound loops indefinitely.