Code: Select all
init python:
renpy.music.register_channel("music1", mixer="music", loop=False, stop_on_mute=True, tight=True, file_prefix='', file_suffix='', buffer_queue=True)
sounds = ["audio/audio{}.wav".format(i) for i in range(1, 3)]
def m1_callback():
renpy.music.play(renpy.random.choice(sounds), channel="music1", fadein=10)
renpy.music.set_queue_empty_callback(m1_callback)
label start:
"Just sit here and listen to the sounds"
return
Code: Select all
init python:
renpy.music.register_channel("music1", mixer="music", loop=False, stop_on_mute=True, tight=True, file_prefix='', file_suffix='', buffer_queue=True)
sounds = ["audio/audio{}.wav".format(i) for i in range(1, 3)]
def m1_callback():
renpy.music.play(renpy.random.choice(sounds), channel="music1", fadeout=10)
renpy.music.set_queue_empty_callback(m1_callback)
label start:
"Just sit here and listen to the sounds"
return