Page 1 of 1

[SOLVED] Voice bleeps playing infinitely in built projects

Posted: Mon Aug 02, 2021 5:15 pm
by Syrale
I just discovered this issue in my game that, when I play it through the Ren'Py launcher, the voice bleeps work perfectly fine (they stop playing as soon as a line has been fully displayed), but if I build the project and open the .exe, then the same exact voice bleeps continue forever.

This is the code I use:

Code: Select all

init:
    $ renpy.music.register_channel("blips", mixer="voice", tight=True, buffer_queue=True, loop=True)
init python:
    def o_blip(event, **kwargs):
        if event == "show":
            renpy.music.play("audio/o.ogg", channel="blips", loop=True)
        elif event == "slow_done" or event == "end":
            renpy.music.stop(channel="blips")
Is it outdated, or is there some other reason it's not working properly?

Update: This error only happens on the first launch of the game. If I close it and reopen it, that fixes the issue.
However, I would really like it if it didn't happen in the first place...

Re: Voice bleeps playing infinitely in built projects

Posted: Sat Aug 07, 2021 12:01 pm
by Captain Monocle
It would seem to me you are using an outdated cookbook entry from the deprecated Ren'py documentation. I'd suggest using the updated example here to see if that resolves the issue: https://www.renpy.org/doc/html/character_callbacks.html

Re: Voice bleeps playing infinitely in built projects

Posted: Sat Aug 07, 2021 12:43 pm
by Syrale
Captain Monocle wrote: Sat Aug 07, 2021 12:01 pm It would seem to me you are using an outdated cookbook entry from the deprecated Ren'py documentation. I'd suggest using the updated example here to see if that resolves the issue: https://www.renpy.org/doc/html/character_callbacks.html
That did indeed fix the issue. Thank you very much!