documentation index ◦ reference manual ◦ function index
Function: | renpy.play | (filename, channel=0, fadeout=0, fadein=0, tight=False): |
This is an alias for renpy.sound.play
Plays the named file once on the given channel. This will cause any playing sound effect to be stopped (after the given fadeout number of seconds, if necessary), and the new sound to be played in its place. The sound is faded in for the given number of seconds.
The filename may be that of a file in an archive.
If tight is True, then a fadeout of this sound will continue into the next-queued sound.
$ renpy.play("quindar.wav") e "Ground control to Major Tom."