v0.13.8

C_Sound.PlaySound

functionimplementedavailable in: camelot

Plays a sound kit. Returns whether it played, and a handle to the sound. · description by wowlua

signaturewowlua
function C_Sound.PlaySound(    soundKitID: number,    uiSoundSubType: UISoundSubType,    forceNoDuplicates: boolean,    runFinishCallback: boolean,    overridePriority: number?,    volumeOverride: number?): (boolean?, SoundHandle?)

Parameters

nametypedescription
soundKitIDnumberSound Kit ID in . Sounds used in FrameXML are defined in the SOUNDKIT table.
uiSoundSubTypeUISoundSubTypeSound channel to play this file on. Default: "g_defaultSI3UISoundSubTypeForLua".
forceNoDuplicatesbooleanDo not play the sound when it is already playing. Default: false.
runFinishCallbackbooleanFire SOUNDKIT_FINISHED when the sound ends. Default: false.
overridePrioritynumber?A priority that overrides the sound kit's own.
volumeOverridenumber?A volume that overrides the sound kit's own.

Returns

#nametype
1successboolean?
2soundHandleSoundHandle?

Blizzard's documentation says it may return nothing.

In wowlua's emulated client

implementedwowlua models the system behind it. what the statuses mean

Restrictions

sources

Signature and flags: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Sound system, camelot 1.60.1). Description: written by wowlua where no documentation describes the entry. Parameter and result notes: warcraft.wiki.gg's API pages ↗, by its contributors, CC BY-SA 4.0 ↗.