documentation index ◦ reference manual ◦ function index

# renpy.sound.play

Function: | renpy.sound.play | (filename, channel=0, fadeout=0, fadein=0, tight=False):

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.

## Example

    $ renpy.sound.play("quindar.wav")
    e "Ground control to Major Tom."

documentation index ◦ reference manual ◦ function index