Page 1 of 1

How to set channel volume

Posted: Wed Jan 10, 2018 7:45 am
by Alvsvartr
Dear friends,


Please, advise me on the following.
I've added a new music channnel with a command "renpy.music.register_channel("bgs", loop=True)", it works fine but it sounds too loud. I'd like to set the volume of this channel to 0.5 but all of the examples which are on the Internet result into nothing.

Re: How to set channel volume

Posted: Wed Jan 10, 2018 9:14 am
by Remix
Why not just use the mixer="music" parameter when you register, that way the volume is controlled by the Music Volume in Preferences?

Audio Channel Defaults

Remember that config.has_music will need to be set to True to show mixer in Preferences

Re: How to set channel volume

Posted: Wed Jan 10, 2018 11:06 am
by Alvsvartr
Remix wrote: Wed Jan 10, 2018 9:14 am Why not just use the mixer="music" parameter when you register, that way the volume is controlled by the Music Volume in Preferences?

Audio Channel Defaults

Remember that config.has_music will need to be set to True to show mixer in Preferences
Thanks for your reply but there are some difficulties for me when using standard mixer when I'd like to make double or triple layered background sound. Thus there are bgs, bgs1, bgs2 and bgs3 channels in my project. May be it is stupid but I'm newbie and my specialization is music and texting not programming.

Re: How to set channel volume

Posted: Thu Jan 11, 2018 10:03 am
by Alvsvartr
So, if we use this one in script file, it'll work but with annoying buzz sound. If it is impossible to fix this issue, it will be much better to make background sounds quieter in Cubase.

Code: Select all

$ renpy.music.set_volume(0.1, channel="bgs")
play bgs "bgs/rain.ogg" fadein 1.0