Audio

Audio

Base class of audible Sumerian objects

Constructor

new Audio()

Members

currentTime

Gets the current UNIX timestamp in ms

Methods

autoplayableStart(when, startOffset, durationnullable)

Wait for AudioContext to resume audio and then play

Parameters:
Name Type Attributes Description
when number

The time, in ms, at which the sound should begin to play, in the same time coordinate system used by the AudioContext. If value is equal to 0, the sound begins to play at once.

startOffset number

When, in ms, in the AudioContext buffer the sound will start.

duration number <nullable>

How long, in ms, the sound will play for. If undefined, the buffer will play in its entirety.