- Jun 2, 2018
- 543
- 686
** Bug confirmed:
PauseAudio()
renpy.music.set_pause()
using the pause function then showing a video results in playing the audio again while Ren'Py continues to function under the assumption that the channel is still paused.
If you need a work-around, there is a possible solution posted here.
Update:
I am told that this will be fixed in the next patch. If you have this issue make sure you're up to date.
I play a song on a channel named "two":
Using an imagebutton I open the character screen
Because I don't know when music will be playing, nor which song will be playing I use
I've tried putting the pause in a million places but the two functional places were on 'show' or as an action in the imagebutton:
I unpause it as I exit back the game. It works. I give myself a pat on the back and sip my coffee.
Until:
When I hover the imagebutton the movie plays, and the game completely forgets that the music paused. This means I get a movie and two songs playing, like a party at a frat house without all the piss covering the walls.
Here's the audio channels:
I can't for the life of me figure out the correlation between adding a video and ren'py forgetting that a variable is false...
Solutions I've found involve returning a bunch of information from the track and resuming from the point while being as incomprehensible as possible.
Thing is, the pause works fine up until I add a video on the screen. I couldn't find anything involving "unpausing" issues... I'm hoping for a solution or an alternative.
Please and thank you!
PauseAudio()
renpy.music.set_pause()
using the pause function then showing a video results in playing the audio again while Ren'Py continues to function under the assumption that the channel is still paused.
If you need a work-around, there is a possible solution posted here.
Update:
I am told that this will be fixed in the next patch. If you have this issue make sure you're up to date.
I play a song on a channel named "two":
Python:
label start:
play two "audio/song.ogg"
Using an imagebutton I open the character screen
Because I don't know when music will be playing, nor which song will be playing I use
PauseAudio("two", True)
I've tried putting the pause in a million places but the two functional places were on 'show' or as an action in the imagebutton:
Python:
screen character_screen():
modal True
zorder 99
imagebutton:
idle "images/characters/Samantha/Samantha.jpg"
hover "images/characters/Samantha/Samantha.jpg"
hovered SetVariable("name_Samantha_hover", True)
unhovered SetVariable("name_Samantha_hover", False)
# Play a different song on channel named "seven"
action [Show("Samantha_status_screen"), Play("seven", "audio/other song", False)]
# Pauses the song
on 'show' action PauseAudio("two", True)
I unpause it as I exit back the game. It works. I give myself a pat on the back and sip my coffee.
Until:
Python:
screen Samantha_status_screen():
modal True
zorder 99
imagebutton:
xpos 50
ypos 200
idle "images/characters/Samantha/sides/Samantha status.png"
hover "images/characters/Samantha/sides/Samantha status.png"
hovered SetVariable("image_Samantha_hover", True)
unhovered SetVariable("image_Samantha_hover", False)
action NullAction()
if image_Samantha_hover:
add getattr(store, "video/status/Samantha status.webm"):
xpos 50
ypos 200
When I hover the imagebutton the movie plays, and the game completely forgets that the music paused. This means I get a movie and two songs playing, like a party at a frat house without all the piss covering the walls.
Here's the audio channels:
Python:
init python:
renpy.music.register_channel("two", mixer="music", loop=True)
renpy.music.register_channel("seven", mixer="music", loop=False)
renpy.music.register_channel("status_movie", mixer="voice", loop=False, movie=True)
I can't for the life of me figure out the correlation between adding a video and ren'py forgetting that a variable is false...
Solutions I've found involve returning a bunch of information from the track and resuming from the point while being as incomprehensible as possible.
Thing is, the pause works fine up until I add a video on the screen. I couldn't find anything involving "unpausing" issues... I'm hoping for a solution or an alternative.
Please and thank you!
Last edited: