Skip to the content

Toranpuトランプ

Use a deck, play eleven games with computers, solve a solitaire, or display cards in your own design.

Toranpu is Japanese for playing cards. About the name

Contents

Reference · Sound controls

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

NameTypeDescription
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);
true

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/toranpu 2.15.0.