v0.13.8

C_Sound

namespaceavailable in: camelot

Status in wowlua

6 functions: 1 implemented, 0 recorded, 5 guessed. 2 events, 0 of them fired by the emulator on its own.

Functions

functionwhat it doesstatus
GetSoundScaledVolumeReturns the scaled volume of a playing sound. · by wowlua
(soundHandle: number): number
guessed
IsPlayingWhether the given sound is still playing. · by wowlua
(soundHandle: number): boolean
guessed
PlayItemSoundPlays a sound of the item at the given location. · by wowlua
(soundType: ItemSoundType, itemLocation: ItemLocationMixin)
guessed
PlaySoundPlays a sound kit. Returns whether it played, and a handle to the sound. · by wowlua
(soundKitID: number, uiSoundSubType: UISoundSubType, forceNoDuplicates: boolean, runFinishCallback: boolean, overridePriority: number?, volumeOverride: number?): (boolean?, SoundHandle?)
implemented
PlaySoundWithOptionsPlays a sound with the given options, like PlaySound. Returns whether it played, and a handle to the sound. · by wowlua
(params: PlaySoundParams): (boolean?, SoundHandle?)
guessed
PlayVocalErrorSoundPlays the player character's voice line for the given error. · by wowlua
(vocalErrorSoundID: Vocalerrorsounds)
guessed

"by wowlua": no one documents this function, so wowlua wrote the description from its name, signature and behaviour.

Events

eventpayloadfired by the emulator
SOUNDKIT_FINISHEDsoundHandle: numbernot implemented
SOUND_DEVICE_UPDATEno payloadnot implemented

An event the emulator doesn't fire on its own can still be fired from a test: mock.fireEvent("SOUNDKIT_FINISHED").

Structures

  • PlaySoundParams · soundKitID, uiSoundSubType, forceNoDuplicates, runFinishCallback, overridePriority?, volumeOverride?
  • PlaySoundResult · success, soundHandle

sources

Signatures, events and structures: Blizzard's API documentation (Blizzard_APIDocumentationGenerated) (Sound system, camelot 1.60.1). Descriptions: written by wowlua where no documentation describes the entry.