pixi-reels

API reference

attachReelSounds

pixi-reels


pixi-reels / index / attachReelSounds

function attachReelSounds(
   reelSet: ReelSet, 
   port: ReelAudioPort, 
   cues: ReelCues
): ReelSoundsHandle;

Defined in: audio/ReelSounds.ts:68

Snap a table of cues onto a reel set. Every cue sees the active speed profile and the spin’s mode. Returns a handle whose destroy() detaches every listener and stops every loop; call it when the reel set goes.

Parameters#

ParameterType
reelSetReelSet
portReelAudioPort
cuesReelCues

Returns#

ReelSoundsHandle