How to Freeze Music/Sound when Game is Minimized?

Hi again,

I was wondering if there is a way to automatically freeze a game's music/sound entirely when the window is minimized (or not selected as "on top") instead of allowing it to run while other processes are frozen.

I've experienced that when minimized, music will continue to play but event processing will freeze, resulting in scenes that require music to be tightly coordinated with certain processes (i.e. lip syncing to a song) to be thrown off when the game window is again selected.

As always, thanks in advance for any suggestions! 🙂
Thanks, works like a charm - even up through CoreScript 1.8.0!

As a side note and just in case anyone else encounters this issue, I initially found that having VisuStella's CoreEngine on prevented the audio bug fix plugin from working. However, going into CoreEngine's "Quality of Life" settings and setting "Require Focus" to "true" allowed the plugin to work once again.

EDIT: One issue still persists - the audio fix plugin freezes audio when the game window isn't selected, but audio still continues to play when the window is minimized to the taskbar.

It's still an improvement, though any further info on freezing audio during minimization would be much appreciated!
One issue still persists - the audio fix plugin freezes audio when the game window isn't selected, but audio still continues to play when the window is minimized to the taskbar.
Ah, that's important! 👋

I rewrote it for feature Q06 of my plugin Cae_Tweaks:
This is organised very slightly differently and also pauses video. Importantly, though, it looks like it covers the minimise/hide trigger. I'll look into updating CaeF_PauseFix with something similar~
Awesome, that does the trick! Many thanks!
Great! Just so you know, I've updated my standalone fix, CaeF_PauseFix, so both solutions should now work identically. I'd suggest using PauseFix unless you want some of the other stuff from Tweaks.

Happy RPG Making~ 👋
@caethyril It's a little sad this hasn't been actually fixed in MZ, three years and however many updates later 😢

Original thread: https://forums.rpgmakerweb.com/threads/how-to-freeze-music-sound-when-game-is-minimized.168848/