Skip to the content

Jarajaraジャラジャラ

Draw mahjong tiles, arrange racks and stacked boards, and play seeded Awase alone or at a shared table.

Jarajara is the Japanese sound of mahjong tiles rattling together. About the name

Contents

Reference · Sound controls

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/jarajara/tile-sounds";

Definition

function createTileSounds(options?: TileSoundsOptions): TileSounds

Parameters

NameTypeDescription
options (optional)TileSoundsOptions

Native game, SVG, sound or presentation options.

Returns

TileSounds

A table's tile sounds. Nothing is fetched and no audio context is made until the first sound.

Examples

import { createTileSounds } from "@johnmorrisdotca/jarajara/tile-sounds";

const sounds = createTileSounds({muted:true,window:null});
console.log(sounds.muted,sounds.volume);
sounds.close();
true 0.6

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/jarajara 1.7.0.