I know that I can mute the music, but I'd prefer to be able to pause it.
The library (lib\windows-x86\pysdlsound.sound.pyd - \lib\linux-x86\lib\python2.6\pysdlsound\sound.so - .app\Contents\Resources\lib\python2.6\lib-dynload\pysdlsound\sound.so ) contains functions to do it (it's compiled code, but you can do a CTRL+F) and see references to pysdlsound.sound.pause and pysdlsound.sound.unpause
I've tried that by adding in the file renpy\audio\music.py :
Code: Select all
def pause(channel="music"):
if renpy.game.context().init_phase:
return
try:
c = get_channel(channel)
c.pause()
except:
if renpy.config.debug_sound:
raiseBut it doesn't work.
(it would also be great to add more envolved loop system, with an intro, loop and maybe powerfull things, like a get_pos(), set_pause(x.y), and an event manager to keep things accurate, like on_pos(time,function_to_execute)