Audio Take Two
- Cody Mader
- Apr 26, 2021
- 1 min read
As mentioned in my previous post, audio settings are important to any game. The previous problems with sliders and saving values were fixed but a new problem came to light. While you could raise or lower the SFX volume and music volume, and even control both with a master slider, there was a major bug. If a player lowered the master slider and then adjusted the SFX or music slider, it would set both SFX and music to whatever the player set them to on their individual sliders and ignore the master slider.
This was a bug that essentially made the audio sliders non-functional since they didn't function properly. I tried a few different solutions until through the help of the Unreal Slackers discord I found a solution I didn't even think of. I was focused on trying to have the master slider have direct control over the SFX and music sliders, even attempting to use the master slider's value as the max value for the SFX and music sliders. When I got stumped I posted my issue in the Unreal Slackers discord and received a response. The solution was to instead use the master slider as a multiplier for the SFX and music sliders. That fixed my problem, and through my research, I also discovered I was missing a call to set the volume for the audio mixes as well.
Comentarios