WoW:API PlaySoundFile: Difference between revisions

no edit summary
(added the link reference and promise of repair)
No edit summary
Line 15: Line 15:


:(SoundFile)
:(SoundFile)
:;SoundFile : String - The path and name of the sound file you'd like to play.  This has been successfully tested with .wav and .mp3 files.  Note that the path is relative to the World of Warcraft installation directory. As of patch 1.11, custom sound files are not playing properly.  In [http://forums.worldofwarcraft.com/thread.aspx?fn=wow-interface-customization&t=398491&p=1&tmp=1#post398491 this thread], Slouken states that a repair is intended.
:;SoundFile : String - The path and name of the sound file you'd like to play.  This has been successfully tested with .wav and .mp3 files.  Note that the path is relative to the World of Warcraft installation directory.  


----
----
Line 38: Line 38:


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.
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.
This API call was broken in patch 1.11 and was fixed in patch 1.11.2.


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