Check if ME is currently playing.

Greetings. I have isolated instances in a project file, where a single track will play once. So, I wanted to check if an ME is currently playing through a script call. So that if an ME is playing I can have an event not trigger another ME. I found that there are some quirks with ME's, like not being able to identify the currently playing ME, but I was hoping just telling if an ME is currently playing is possible.

I realize I could do this through a parallel running event, likely as a common event with appropriate wait commands. But if a player saves, quits, and reloads, the ME will not play but the common event will continue until finished. So if possible I'd like to avoid that.
The thread you linked to has an answer to your question.

If you implement the changes that Nolonar describes in post #4, checking for AudioManager._currentMe will then tell you whether an ME is playing.

You can also, without modification, check AudioManager._meBuffer and that should also indicate whether an ME is playing.
Ahhh, I’m sorry! I should have realized that. Thank you!

Original thread: https://forums.rpgmakerweb.com/threads/check-if-me-is-currently-playing.165618/