WoW:API PlaySoundFile: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 35: Line 35:
This has been successfully tested for playing sounds inside your AddOn's directory, so you don't have to worry about putting your sound files outside your AddOn directory.
This has been successfully tested for playing sounds inside your AddOn's directory, so you don't have to worry about putting your sound files outside your AddOn directory.


(What if it can't find the file, is there some sort of error code?)
However - it does appear that the sound file must be present in the AddOn directory '''BEFORE''' loading the game.  A /console reloadui will not refresh the sound files. 
 
There does not appear to be a bad error if the file is missing - it just won't play. There is a return status, which is 1 if the sound was OK and nil if it couldn't be found.


----
----
{{Template:WoW API}}
{{Template:WoW API}}
Anonymous user