Author Sam Shockley
Posted 7/17/2026
Blog entry 1: Problem
The main problem i encountered this week was trying to find a way to utilize an audio manager to change what audio track is being played depending on what menu is open. On top of that i wanted to make it so rather than flat stopping the previous audio track being played it just paused it until the menu was closed. While from the outside that may seem like a simple problem, it wasn't extremely hard but rather tricky to work out the logic on where to call and how to code it.
Blog Entry Part 2: Problem Solution
After creating the background music system, I expanded the audio manager to support the game's pause and settings menus. When a menu is opened, the currently playing background music is paused and the appropriate menu music begins playing. When the menu is closed, the menu music stops and the previous track resumes from where it left off. By pausing and resuming audio instead of starting new background tracks, the system also prevents duplicate music from playing at the same time. This approach keeps the audio transitions smooth, organizes all music playback in one place, and makes the system easier to maintain as more menus or audio tracks are added in the future.




