Is there no way to reliably mute sounds?

I was under the impression that MuteSoundFile() worked for sounds that are played via PlaySound() or PlaySoundFile() …however, in the game right now, if I enter the command /script MuteSoundFile(49731) …then /script PlaySound(49731) still plays the sounds. Is there just no way to mute 49731 or sounds like it?

I guess I can understand why Blizzard removed the ability to use “custom sounds” in the client a while back, but I don’t understand any reason why we should be denied the ability to mute specific sounds that are so repetitive that they’re annoying.

It would be nice to have a developer comment on this.

Just speculation but it’s probably more on an “If this is playing then” sort of situation.

I’m not sure I know what you mean. The issue is that some sound IDs work with the snippet I mentioned, but others do not. It’s the lack of consistency that is maddening.

  • MuteSoundFile() and PlaySoundFile() use FileDataIDs
  • PlaySound() uses SoundKitIDs, which are groups of sound files

So it should be like MuteSoundFile(1108145) (sound/creature/manasaber/mon_manasaber_attack_01.ogg) mutes the sound file and PlaySoundFile(1108145) would no longer play a sound.
https://wow.tools/dbc/?dbc=soundkitentry#colFilter[1]=49731
https://wow.gamepedia.com/API_MuteSoundFile