AudioManager.bgmVolume = 100; issue

Hello guys! I'm having a problem trying to replace the SceneManager.push (Scene_Options); script call.

I created a menu that the player can choose different types of presetings audios.

Each option will have a custom volume amount. I do this through this script call:
Code:
AudioManager.bgmVolume = 100;
AudioManager.bgsVolume = 100;
AudioManager.meVolume = 100;
AudioManager.seVolume = 100;

It works nicely, but the problem is that through this script call the game does not memorize the settings. So when you close the game it goes back to what it was before.
I would like to know which script call I should put to memorize these audios parameters.

Thank you very much in advance!
Hi @thalesgal !
I think you have to try this:

Code:
ConfigManager.bgmVolume = 100;
ConfigManager.meVolume = 100;

etc...

And when you finish setting this you call:

Code:
ConfigManager.save();
> This code will generate the file in the save folder that stores the config options.
Whenever the user presses the 'Save' or 'Ok' button, you should probably save the configuration with something like this :

Code:
ConfigManager.bgmVolume = 100;
ConfigManager.bgsVolume = 100;
ConfigManager.meVolume = 100;
ConfigManager.seVolume = 100;
ConfigManager.save();

On load of the options window, you can use ConfigManager to set any controls you have on the window :

Code:
this.dodadThingie = ConfigManager.bgmVolume;
// Etc ...

EDIT: Oop, yeah, basically what Eliaquim said.
@Ossra @Eliaquim
Awesome!!! Thank you so much guys!!!
@thalesgal If your query is solved, please report your post and a moderator will close this.
Thread closed IgnoreMe

Original thread: https://forums.rpgmakerweb.com/threads/audiomanager-bgmvolume-100-issue.112968/