renpy.music.queue - Ren'Py Visual Novel Engine

documentation index ◦ reference manual ◦ function index

# renpy.music.queue

Function: | renpy.music.queue | (filenames, channel=7, loop=True, clear_queue=True, fadein=0, tight=False):

This queues the given filenames on the specified channel.

filenames - May either be a single filename, or a list of filenames.

loop - If True, then this music will repeat as long as it is the last element of the queue. The filenames given becomes the last queued file if loop is True. If loop is False, then the last queued file is set to None.

clear_queue - If True, then the queue is cleared, making these files the files that are played when the currently playing file finishes. If it is False, then these files are placed at the back of the queue. In either case, if no music is playing these files begin playing immediately.

fadein - The number of seconds to fade the music in for, on the first loop only.

tight - If True, then fadeouts will span into the next-queued sound.

## Example

        # Start some musics playing in the background, looping between 2 music files
        $ renpy.music.queue(["mozart.ogg", "beethoven.ogg"], loop=True)

documentation index ◦ reference manual ◦ function index