You could maybe temporarily enable all sounds when an addon's sound file is playing as a workaround
Lua Code:
local function DisableSound()
SetCVar("Sound_EnableAllSound", 0)
end
--[[ posthook does not seem to work
hooksecurefunc("PlaySoundFile", function()
SetCVar("Sound_EnableAllSound", 1)
C_Timer.After(3, DisableSound)
end)
]]
local oldPlaySoundFile = PlaySoundFile
function PlaySoundFile(...)
SetCVar("Sound_EnableAllSound", 1)
C_Timer.After(3, DisableSound)
oldPlaySoundFile(...)
end
DisableSound()