Sound.play method

play(self, on_finish: Callable[[], None]) -> None:

Plays this Sound.

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

Parameters

  • on_finish: Callable[[], None]

    callback function when the Sound finishes.