Skip to content
everloot

Lore archive · Warcraft Wiki, 2023 dump

API MuteSoundFile

Last wiki revision 2022-10-29

Mutes a sound file. MuteSoundFile(sound)

  • sound: - FileID of a game sound or file path to an addon sound.

==Example== Plays the Sound/Spells/LevelUp.ogg sound /run PlaySoundFile(569593) Mutes it, the sound won't play /run MuteSoundFile(569593); PlaySoundFile(569593) Unmutes it and plays it /run UnmuteSoundFile(569593); PlaySoundFile(569593)

  • Muted sound settings only persist through relogging and /reload. They have to be muted again after restarting the game client.
  • This works on all internal game sounds, addon sounds and sounds played manually by
  • There is no API to replace sound files.

Mutes the fizzle sounds. local sounds = { 569772, -- sound/spells/fizzle/fizzleholya.ogg 569773, -- sound/spells/fizzle/fizzlefirea.ogg 569774, -- sound/spells/fizzle/fizzlenaturea.ogg 569775, -- sound/spells/fizzle/fizzlefrosta.ogg 569776, -- sound/spells/fizzle/fizzleshadowa.ogg } for _, fdid in pairs(sounds) do MuteSoundFile(fdid) end

Source

https://warcraft.wiki.gg/wiki/API_MuteSoundFile · retrieved 2023-11-13 · CC BY-SA 4.0

Converted from wikitext with templates, tables and images removed, so some sentences may be missing values.

This archive predates WoW: Forever. For collected gameplay facts see the Forever database. Search the archive.