Audio Callback "pop" Sound

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
PiraPiranha
Newbie
Posts: 3
Joined: Tue Jun 05, 2018 2:14 am
Completed: N/A
Projects: Juniper's Day
Organization: PiraPiranha
itch: https://pirapiranha.
Contact:

Audio Callback "pop" Sound

#1 Post by PiraPiranha »

Hi! I'm using the callback feature to play a single beep on loop to emulate "voice beeping" for my characters and there seems to be a glitch where there is a slight "pop" sound that I randomly hear when a character's dialogue has finished.

This is what my callback looks like, I tried to reduce it with a fadein/fadeout but I still hear it on occasion. I hear it on different dialogue lines of varying lengths so I'm convinced that its a random occurrence that I haven't yet figured out how to solve.

https://youtu.be/K6G3NFR2e7A?t=21

You can also faintly hear it in this clip I recorded.

Code: Select all

init python hide:
    import os
    os.environ["RENPY_SOUND_BUFSIZE"] = "4096"
init python:

    def ppv(event, interact=True, **kwargs):
        if not interact:
            return

        if event == "show_done":
            renpy.music.play("audio/ppv3.wav", channel="text", loop="true", fadein = 0.25, fadeout = 0.25, tight="none")
        elif event == "slow_done":
            renpy.music.stop(channel="text")

Post Reply

Who is online

Users browsing this forum: Google [Bot]