I have a question regarding to the audio volume controls especially aimed for the main menu.
I have defined an audio file like this.
Code: Select all
define audio.music_main_menu = "music_file_name.mp3"
Code: Select all
define config.main_menu_music = audio.music_main_menu
Of course I could use Audacity app and manually change the volume but I assumed I could change all that while defining the audio file.
Correct me if I am wrong but it seems like defining an audio file as a usable variable is just for that.
I assumed you could place specific settings like volume and etc into the defined audio file something like this(NOTE: the code below is not correct, it is just for the visual example):
Code: Select all
define audio.music_main_menu = Audio("music_file_name.mp3", volume = 0.3)
The config.main_menu_music also seems to only accept the audio file path name or the defined ones and there is nothing much else to do.
For the regular game flow like in the Label block content I could just write:
Code: Select all
label start:
play audio.music_main_menu volume 0.3
$ renpy.pause(hard= true) #Preventing to return to the main menu
return
And this is fine
But I have no idea how to approach this for the main menu unless I suppose I somehow make the music play when the main_menu screen is shown.
So is there really nothing much else you can do, like add more settings, parameters directly into defined audio file?