Use audio tags. Play all music with "music" tag, all effects with "effect" tag.
You can use multiple tags, for example, "explosion effect", "battle music".
Then you will be able to mute/unmute all music or effect sounds:
Mute "music"
Mute "effect"
When I use the mute action, it only mutes audio that is currently playing, not any new sounds that play afterward.
Yes, you will need to repeat mute/unmute action for all new sounds. I suggest using a function to play audio.