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/toranpu/card-sounds";
Definition
function createCardSounds(options?: CardSoundsOptions): CardSounds
Parameters
| Name | Type | Description |
|---|---|---|
options (optional) | CardSoundsOptions | Options for this call; omitted fields retain their documented defaults. |
Returns
CardSounds
A table's card sounds. Nothing is fetched and no audio context is made until the first sound.
Examples
import { createCardSounds } from "@johnmorrisdotca/toranpu/card-sounds";
console.log(createCardSounds({ muted: true, window: null }).muted);trueWhat it prints (run when this page was built)