API PlaySound

Play one of a set of built-in sounds. Other players will not hear the sound. willPlay, soundHandle = PlaySound(soundKitID [, channel, forceNoDuplicates, runFinishCallback])

Arguments

 * soundKitID : - All sounds used by Blizzard's UI are defined in the SOUNDKIT table.
 * channel : - The sound volume slider setting the sound should use, one of: ,   (Sound),  ,  ,  . Individual channels (except "Master") have user-configurable volume settings and may be muted, preventing playback. Defaults to   if not specified. There is also a   channel.
 * forceNoDuplicate : - Allow duplicate sounds if false. Defaults to true.
 * runFinishCallback : - Fires  when sound is done, arg1 will be soundHandle given below. Defaults to false.



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