Skip to content

Commit

Permalink
remove LSM sounds, handled via hook instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Nnoggie committed Sep 8, 2023
1 parent 768cbba commit 31a3b08
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
1 change: 0 additions & 1 deletion main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ f:SetScript("OnEvent", function(self, event, ...)
end
f:UnregisterEvent("PLAYER_ENTERING_WORLD")
if not runOnce then
addon:AddLSMSounds()
addon:AddAddonSounds()
addon:HookPlaySoundFile()
runOnce = true
Expand Down
13 changes: 0 additions & 13 deletions sounds.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,6 @@ addon.sounds = {

}

function addon:AddLSMSounds()
local LSM = LibStub("LibSharedMedia-3.0")
if not LSM then return end
if not LSM.MediaTable then return end
if not LSM.MediaTable.sound then return end
for _, sound in pairs(LSM.MediaTable.sound) do
local fileId = tonumber(sound)
if fileId then
table.insert(addon.sounds, fileId)
end
end
end

function addon:AddAddonSounds()
for sound, _ in pairs(addon.db.addonSounds) do
table.insert(addon.sounds, sound)
Expand Down

0 comments on commit 31a3b08

Please sign in to comment.