m
Move page script moved page API PlaySoundFile to WoW:API PlaySoundFile without leaving a redirect
(Custom .WAVs no longer work with PlaySoundFile, added references to .OGG) |
m (Move page script moved page API PlaySoundFile to WoW:API PlaySoundFile without leaving a redirect) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
{{wowapi}} | {{wowapi}} | ||
Plays the specified audio file once. Unlike [[API PlayMusic|PlayMusic]], you cannot stop the playback. | Plays the specified audio file once. Unlike [[API PlayMusic|PlayMusic]], you cannot stop the playback. | ||
PlaySoundFile("path") | PlaySoundFile("path"[, "channel"]) | ||
== Arguments == | == Arguments == | ||
;path : String – The path and name of the sound file you'd like to play, relative to the WoW directory; both ogg and mp3 formats are accepted. The file must exist prior to logging in to WoW. | ;path : String – The path and name of the sound file you'd like to play, relative to the WoW directory; both ogg and mp3 formats are accepted. The file must exist prior to logging in to WoW. | ||
;channel : String – Either "Master" (this will play the sound also with disabled sounds like before 4.0.1), "SFX", "Ambience", "Music". | |||
== Examples == | == Examples == | ||