Originally Posted by MunkDev
If you want to allow unique sounds, like the talking head monologues or any other uncommon sound, but not UI sounds, use this:
Lua Code:
local dummy, kit = false, {} for _, v in pairs(SOUNDKIT) do kit[v] = true end hooksecurefunc('PlaySound', function(id) if dummy or (not kit[id]) then return end dummy = true local played, handle = PlaySound(id+1) if played then StopSound(handle-1) StopSound(handle) end dummy = false end)
|
Can I use this and then add specific blizzard sounds to be allowed through?
Or would it be easier to change this addon(
http://www.wowinterface.com/download...erts.html#info) to play through the "Master" channel whilst SFX are disabled under system>>>sounds in-game?