4 games, 4 different versions of this function. Interestingly, moving the game-specific differences to inline functions makes it obvious that this function was only intended for BGM, not sound effects. Part of P0139, funded by [Anonymous].