Skip to content

anim-format (runtime format) / soundPlayLength

Function: soundPlayLength() ​

ts
function soundPlayLength(opts, duration): number;

Seconds one play lasts (all loops); Infinity when it loops forever.

Parameters ​

ParameterType
optsSoundOptions
durationnumber

Returns ​

number

HereSplash — 2D animation for the web