createTileSoundsfunction
A table's tile sounds. Nothing is fetched and no audio context is made until the first sound.
Import it
import { createTileSounds } from "@johnmorrisdotca/domino/tile-sounds";
Definition
function createTileSounds(options?: TileSoundsOptions): TileSounds
Parameters
| Name | Type | Description |
|---|---|---|
options (optional) | TileSoundsOptions | Native sound-player choices or Mexican Train house rules specified by the signature. |
Returns
TileSounds
A lazy sound-player handle; close it when the table is removed.
Examples
import { createTileSounds } from "@johnmorrisdotca/domino/tile-sounds";
console.log(createTileSounds({muted:true,window:null}).muted);trueWhat it prints (run when this page was built)