TILE_SOUND_DATAconstant
The tile sounds, recorded: tiles shuffled, drawn, laid and knocked on the
table, as base64 AAC (.m4a). From Kenney's Casino Audio
pack, CC0; see CREDITS.md. Written by scripts/sounds.mjs from the files
in ./sounds, never by hand. createTileSounds loads this module only when
a sound is first played, so a page that stays silent never downloads it.
Import it
import { TILE_SOUND_DATA } from "@johnmorrisdotca/domino/sounds";
Definition
const TILE_SOUND_DATA: Readonly<Record<TileSoundFile, string>>
Members
| Name | Type | Description |
|---|---|---|
draw-1 | string | |
draw-2 | string | |
knock-1 | string | |
knock-2 | string | |
lay-1 | string | |
lay-2 | string | |
lay-3 | string | |
shuffle-1 | string | |
shuffle-2 | string |
Examples
import { TILE_SOUND_DATA } from "@johnmorrisdotca/domino/sounds";
console.log(Object.keys(TILE_SOUND_DATA));[
'draw-1', 'draw-2',
'knock-1', 'knock-2',
'lay-1', 'lay-2',
'lay-3', 'shuffle-1',
'shuffle-2'
]What it prints (run when this page was built)