View Single Post
10-30-17, 06:17 AM   #1
ballistics1142
A Deviate Faerie Dragon
Join Date: Apr 2017
Posts: 14
Question 7.3 Broken PlaySoundFile()/PlaySound()

Hi,

I did a taint log to find what was the main cause of these lua errors(I'm aware of the logout/quit functions are now protected in 7.3), and apparently it's on the 4/9th line of my small addon.

This was an addon created for me by Afterafterlife @ https://www.reddit.com/r/wowaddons/c..._addon_sounds/

which i have shown below;

Code:
    -- This file is loaded from "!Play_Addon_Sounds.toc"
    
    local BlizzPlaySoundFile = PlaySoundFile; 
    function PlaySoundFile(fileName, track)
        BlizzPlaySoundFile(fileName, "MASTER");
    end
    
    local BlizzPlaySound = PlaySound;
    function PlaySound(fileName, track)
        --we don't need sounds here
        return;
    end
How do I change the arguments here on the code lines below to reference all SoundKitID's;

Code:
function PlaySoundFile(fileName, track)
Code:
 function PlaySound(fileName, track)
Any help will be greatly appreciated!
  Reply With Quote