API PlaySound

Plays the specified sound by SoundKitID.
 willPlay, soundHandle = PlaySound(soundKitID [, channel, forceNoDuplicates, runFinishCallback])
==Arguments==
:;soundKitID: - Sound Kit ID in SoundKitEntry.db2. Sounds used in FrameXML are defined in the SOUNDKIT table.
:;channel: - The sound channel.
{| class="sortable darktable zebra" style="margin-left: 3.9em"
! Channel !! Toggle CVar !! Volume CVar
|-
| Master || || 
|-
| Music || || 
|-
| SFX (Effects) || || 
|-
| Ambience || style="padding-right: 1em" | || 
|-
| Dialog || || 
|-
| Talking Head || ||
|}
:;forceNoDuplicates: - Allows duplicate sounds if false.
:;runFinishCallback: - Fires when the sound has finished playing, arg1 will be soundHandle.
==Returns==
:;willPlay: - true if the sound will be played, nil otherwise (prevented by a muted sound channel, for instance).
:;soundHandle: - identifier for the queued playback.
==Example==
Plays the ready check sound file (sound/interface/levelup2.ogg)
PlaySound(SOUNDKIT.READY_CHECK) -- by SOUNDKIT key
PlaySound(8960) -- by SoundKitID
 (567478) -- by FileDataID
==Details==
* Sound Kit IDs are used to play a set of random sounds. For example the human female NPC greeting sound kit refers to 5 different sounds.
/run PlaySound(5980)
-- will play one of these sounds
/run PlaySoundFile(552133) -- sound/creature/humanfemalestandardnpc/humanfemalestandardnpcgreeting01.ogg
/run PlaySoundFile(552141) -- sound/creature/humanfemalestandardnpc/humanfemalestandardnpcgreeting02.ogg
/run PlaySoundFile(552137) -- sound/creature/humanfemalestandardnpc/humanfemalestandardnpcgreeting03.ogg
/run PlaySoundFile(552142) -- sound/creature/humanfemalestandardnpc/humanfemalestandardnpcgreeting04.ogg
/run PlaySoundFile(552144) -- sound/creature/humanfemalestandardnpc/humanfemalestandardnpcgreeting05.ogg
===Finding Sound IDs===
==Patch changes==
==See also==
* - Accepts FileDataIDs and addon file paths.
*