Skip to content

PlayOptions

Sound, as small as it can be: Web Audio, decoded buffers by name, and simple tones for games without sound files. Silent while the host says muted, during pauses and breaks (the engine suspends it), and until the page may play audio (resumed on the first event the page receives).

optional volume?: number

0–1 (default 1).


optional rate?: number

Playback rate (pitch): 1 normal.


optional loop?: boolean

Start again at the end, until stop() (default false).