I'm using a sound file that beeps continuously as text is shown (as described here), and it works beautifully, but unless I use just the right amount of characters in a text segment there's this jarring "crackle" sound at the end of it. I think what might be happening is that the sound is starting to replay, but it gets abruptly cut off?
I've tinkered around with the fadeout, but that doesn't seem to help (or I'm just an idiot and am using it wrong). Does anyone know of a way to prevent this kind of thing?
Here is what I'm working with:
Code: Select all
init python:
config.default_text_cps = 20 # no $-sign if this line inside an init python block
def beep1(event, **kwargs):
if event == "show":
renpy.music.play("beep2.wav", channel="sound", loop="true", fadeout =1, fadein=0, tight=False)
elif event == "slow_done" or event == "end":
renpy.music.stop(channel="sound")
init:
$ x = Character("", callback=beep1)
$ config.default_text_cps = 20 # required $-sign if this line inside an init block
$ pname = ""
$ n = DynamicCharacter("pname", color=(192, 64, 64, 255))
image white = "#ffffff"
label start:
scene white
x "So tell me, stranger, what is your first name?"
$ player_name = renpy.input("")
$ player_name = player_name.strip()
if player_name == "":
$ player_name="Jane"
x "And your surname?"
$ player_surname = renpy.input("")
$ player_surname = player_surname.strip()
if player_surname == "":
$ player_surname="Smith"
x "Take a peek into that mirror over there."
x " . . . "
x "You could do with a bit of primping."
call screen character_customization_screen