m
no edit summary
No edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} | ||
PlaySoundFile(SoundFile); | PlaySoundFile(SoundFile); | ||
Play the specified sound file. The file will be played once. Unlike [[API PlayMusic|PlayMusic]], you cannot stop the file fron playing once it starts. | Play the specified sound file. The file will be played once. Unlike [[API PlayMusic|PlayMusic]], you cannot stop the file fron playing once it starts. | ||
| Line 20: | Line 15: | ||
---- | ---- | ||
;''Example: Playing a sound file from within an AddOn's directory'' | ;''Example: Playing a sound file from within an AddOn's directory'' | ||
PlaySoundFile("Interface\\AddOns\\MyAddOn\\mysound.wav"); | PlaySoundFile("Interface\\AddOns\\MyAddOn\\mysound.wav"); | ||
| Line 31: | Line 24: | ||
---- | ---- | ||
;''Details'' | ;''Details'' | ||
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. | ||