This week, our game development hit a snag with the audio settings UI. Despite player-set volume preferences being saved, they weren't applied on game start. Players were greeted by full-volume audio which only adjusted after interacting with the volume sliders. This issue was significant as it affected initial user experience and exposed a major flaw in the application of our audio settings.
The issue was linked to the AudioMixer
not being set during the initial load. To fix this, I introduced LoadInitialVolumeSettings()
, called at startup, to apply saved volume levels directly to the AudioMixer
. This method ensures that the game respects the user's volume settings immediately, improving the start-up experience. We also added a check for zero volume to mute the audio when necessary, streamlining audio management and enhancing maintainability.
Author: Fraser Paterson
Posted on: 4/19/2024
Did you like this post? Tell us
Leave a comment
Log in with your itch.io account to leave a comment.