CARD_SOUND_DATAconstant
The card sounds, recorded: cards dealt, turned over, played, shuffled,
gathered and fanned, as base64 AAC (.m4a). From Kenney's Casino Audio
pack, CC0; see docs/credits.md. Written by scripts/sounds.mjs from the files
in ./sounds, never by hand. createCardSounds loads this module only when
a sound is first played, so a page that stays silent never downloads it.
Import it
import { CARD_SOUND_DATA } from "@johnmorrisdotca/toranpu/sounds";
Definition
const CARD_SOUND_DATA: Readonly<Record<CardSoundFile, string>>
Members
| Name | Type | Description |
|---|---|---|
deal-1 | string | |
deal-2 | string | |
deal-3 | string | |
deal-4 | string | |
fan-1 | string | |
flip-1 | string | |
flip-2 | string | |
gather-1 | string | |
gather-2 | string | |
play-1 | string | |
play-2 | string | |
play-3 | string | |
shuffle-1 | string |
Examples
import { CARD_SOUND_DATA } from "@johnmorrisdotca/toranpu/sounds";
console.log(Object.keys(CARD_SOUND_DATA));[
'deal-1', 'deal-2',
'deal-3', 'deal-4',
'fan-1', 'flip-1',
'flip-2', 'gather-1',
'gather-2', 'play-1',
'play-2', 'play-3',
'shuffle-1'
]What it prints (run when this page was built)