Pause music in MZ when not in focus?

I've found posts that addressed this problem for previous editions of RPG Maker, but is there a plugin for MZ that will pause the game's audio when the game's window is not currently active? Some of my game ideas absolutely require that the audio stays in sync with the visual aspects / event progressions, but all of that is completely ruined if the player clicks on some other window or application in the middle of what's happening.

For the life of me, I can't understand why they won't make these kind of options available by default when they're so basic and necessary for a number of extremely common uses and scenarios... It's almost like they knowingly sold us a shiny new car that doesn't have any breaks.
There's an existing bug report for this with a fix in it.

Thanks! Don't know why that one didn't appear in my search results, but sounds like exactly what I needed.

Original thread: https://forums.rpgmakerweb.com/threads/pause-music-in-mz-when-not-in-focus.151650/