Page 1 of 1

Muting the sound when minimizing the window

Posted: Tue Apr 13, 2021 3:27 pm
by vital1970
Hello.
Is there a way in Ren'py to mute or pause audio when the window is minimized? And if not, how to implement it?

Re: Muting the sound when minimizing the window

Posted: Sun Dec 04, 2022 5:11 am
by Li yuanlin
default preferences.audio_when_minimized = False

write into options.rpy

Re: Muting the sound when minimizing the window

Posted: Sun Dec 04, 2022 5:31 am
by Andredron
Li yuanlin wrote: Sun Dec 04, 2022 5:11 am default preferences.audio_when_minimized = False

write into options.rpy
do you know how to prohibit the launch of several renpy applications?

and then by mistake I launched 6 times on the PC 1 and the same novel?

Re: Muting the sound when minimizing the window

Posted: Sun Dec 04, 2022 1:09 pm
by plastiekk
Andredron wrote: Sun Dec 04, 2022 5:31 am do you know how to prohibit the launch of several renpy applications?
Good question. I would also like to know the answer, because it happens to me often (the reason: too old hardware takes longer to start than usual, so what? -click .exe again amd again .... ooops!^^)

Re: Muting the sound when minimizing the window

Posted: Sun Dec 04, 2022 1:16 pm
by Andredron
plastiekk wrote: Sun Dec 04, 2022 1:09 pm
Andredron wrote: Sun Dec 04, 2022 5:31 am do you know how to prohibit the launch of several renpy applications?
Good question. I would also like to know the answer, because it happens to me often (the reason: too old hardware takes longer to start than usual, so what? -click .exe again amd again .... ooops!^^)
https://www.renpy.cn/thread-222-1-7.html
there is a solution to the problem, but alas, do not download the code to see an example