documentation index ◦ reference manual ◦ function index

# renpy.music.register_channel

Function: | renpy.music.register_channel | (channel, mixer, loop, tight=False):

This registers a new audio channel named channel.

mixer - The name of the mixer the channel uses. The three mixers Ren'Py knows about by default are "music", "sfx", and "voice".

loop - Determines if sounds on this channel loop by default.

tight - Determines if sounds loop even during fadeout.

    init python:
        renpy.music.register_channel("nature", "sound", True)

    label start:
        play nature "wind.ogg"
        play music "piano.ogg"

        "The piano is playing at the same time the wind is blowing."

documentation index ◦ reference manual ◦ function index