Get audio channel volume

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
User avatar
Via_01
Newbie
Posts: 4
Joined: Thu Jul 12, 2012 6:47 pm
Contact:

Get audio channel volume

#1 Post by Via_01 » Fri Aug 21, 2020 7:36 pm

Hello.

Does anybody know if it's possible to get the volume value of an audio channel? I want to check if an audio channel, specifically the voice channel, is silent or muted to trigger something, but I'm not sure how to accomplish this. Any help on this matter would be greatly appreciated!

philat
Eileen-Class Veteran
Posts: 1853
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Get audio channel volume

#2 Post by philat » Sat Aug 22, 2020 4:24 am

_preferences.get_volume("mixername") returns volume as a float between 0 and 1.

Post Reply

Who is online

Users browsing this forum: Google [Bot]