Skip to content
Permalink
Browse files
play sound / queue sound should respect loop parameters.
Fixes #378.
  • Loading branch information
renpytom committed Jun 8, 2014
1 parent 0a3ca8b commit 8a69b0c03f0006b5ec92cce0c99b33a4d74bd2d0
Showing 1 changed file with 7 additions and 2 deletions.
@@ -219,9 +219,12 @@ python early hide:

fadeout = eval(p["fadeout"]) or 0

loop = p.get("loop", False)

renpy.sound.play(eval(p["file"]),
fadeout=fadeout,
fadein=eval(p["fadein"]),
loop=loop,
channel=channel)

def lint_play_sound(p, lint_play_music=lint_play_music):
@@ -238,13 +241,15 @@ python early hide:
else:
channel = "sound"

renpy.sound.queue(eval(p["file"]), channel=channel)
loop = p.get("loop", False)

renpy.sound.queue(eval(p["file"]), channel=channel, loop=loop)


renpy.register_statement('queue sound',
parse=parse_queue_music,
execute=execute_queue_sound,
lint=lint_play_music)
lint=lint_play_sound)

def execute_stop_sound(p):
if p["channel"] is not None:

0 comments on commit 8a69b0c

Please sign in to comment.