Wait until Sound is finished Playing

Hello everyone. I'm making a separate game for a contest going on over in another website. But in order to make this game I will need some scripts, and I will possibly make more requests in the future.

Right now, I need a script for events. It's like a wait command, except that it ends when a particular Sound is finished playing.

For example, I want all processes to stop until a 16 second ME finishes playing. Same can be used for SEs and probably BGM and BGS.

It's like adding a "Wait for Completion" thing to the Sound Board.

It seems pretty simple. Would anyone be willing to do this?
Ah, the old "I can say it in 10 words or less, so it must be easy to do" mindset 😉


How will you tell when the sound has finished playing? I don't know of any way. If you search around, you'll see this (do something when an ME has finished) has been requested a few times - I think it's always been answered with "no way to tell".
Why not just put a wait x frames command after the SE or ME has been told to play? That effectively stops processes on the map (except for maybe some move routes, and you could use an Yanfly script to even halt those). That's what I do in my game if I want the game to wait until the SE is done. It takes a little trial and error to get it right, but usually for most SE's a wait (150) or less is long enough.

Original thread: https://forums.rpgmakerweb.com/threads/wait-until-sound-is-finished-playing.37647/