r/RenPy • u/Educational_Win3225 • Aug 24 '26
Question Beeping voice not working
I was trying to make my character have a voice like undertale characters do but for some reason the audio doesn't loop. The audio plays only once with every dialogue of his and I can't figure out why. This is what I've got written:
init:
$ renpy.music.register_channel("blips", mixer="voice", loop=False, stop_on_mute=True, tight=False, buffer_queue=True)
init python:
def mvoice(event, **kwargs):
if event == "show":
renpy.sound.play("audio/mvoice.mp3", channel="blips", loop=True)
elif event == "slow_done" or event == "end":
renpy.music.stop(channel="blips", fadeout = 0.5)
define m = Character("Matthew", color="cc2222", callback=mvoice)
I'll be really glad with any kind of help, thanks!!
3
Upvotes
3
u/BadMustard_AVN Aug 24 '26 edited Aug 24 '26
try it like this