Persistent Audio Settings

Hi,

I am having a difficult time with having persistent audio settings. I have created sound classes and code to set and get volume for each sound class. Now it worked but on level change the options were set back to default.

So then I added SoundMixer and set sound for SoundMixer - the settings were persistent across level load but I could not read from it current volume value (since soundclass vlaue reseted the sliders also reseted). Is it possible?

Next question is how to store SoundSettings so I could load them on game start? Is UserGameSettings.ini the best place?

1 Like

Use a SaveGameObject, and have an actor load saved settings and set values on a map that loads before any game content. Just an empty map with initiation logic that ends with opening the first game map. You can use the same class to later run the logic to set and save new volume settings.