createCardSoundsfunction
A table's card sounds. Nothing is fetched and no audio context is made until the first sound.
Import it
import { createCardSounds } from "@johnmorrisdotca/hitotsu/card-sounds";
Definition
function createCardSounds(options?: CardSoundsOptions): CardSounds
Parameters
| Name | Type | Description |
|---|---|---|
options (optional) | CardSoundsOptions | Native table, rules, sound or drawing settings; omitted fields retain their defaults. |
Returns
CardSounds
The lazy sound handle; nothing is fetched until load or the first audible play.
Examples
import { createCardSounds } from "@johnmorrisdotca/hitotsu/card-sounds";
console.log(createCardSounds({ muted: true, window: null }).muted);trueWhat it prints (run when this page was built)