Muting the sound when minimizing the window

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
vital1970
Newbie
Posts: 7
Joined: Sat May 30, 2020 9:38 pm
Contact:

Muting the sound when minimizing the window

#1 Post 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?

User avatar
Li yuanlin
Regular
Posts: 83
Joined: Sat Aug 04, 2018 8:42 pm
Location: Hong Kong
Contact:

Re: Muting the sound when minimizing the window

#2 Post by Li yuanlin »

default preferences.audio_when_minimized = False

write into options.rpy
stay hungry,stay foolish.

User avatar
Andredron
Miko-Class Veteran
Posts: 700
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: Muting the sound when minimizing the window

#3 Post 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?

User avatar
plastiekk
Regular
Posts: 112
Joined: Wed Sep 29, 2021 4:08 am
Contact:

Re: Muting the sound when minimizing the window

#4 Post 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!^^)
Why on earth did I put the bread in the fridge?

User avatar
Andredron
Miko-Class Veteran
Posts: 700
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: Muting the sound when minimizing the window

#5 Post 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

Post Reply

Who is online

Users browsing this forum: Majestic-12 [Bot]