API reference
attachBoardSounds
pixi-reels / index / attachBoardSounds
function attachBoardSounds<TData = unknown>(
board: HoldAndWinBoard<TData>,
port: ReelAudioPort,
cues: BoardCues
): ReelSoundsHandle;
Defined in: audio/BoardSounds.ts:49
Snap a table of cues onto a Hold & Win board. Every cue sees the board’s
active speed name. Returns a handle whose destroy() detaches every
listener and stops every loop; call it when the board goes.
Type Parameters#
| Type Parameter | Default type |
|---|---|
TData | unknown |
Parameters#
| Parameter | Type |
|---|---|
board | HoldAndWinBoard<TData> |
port | ReelAudioPort |
cues | BoardCues |