UNPKG

audio2d

Version:

Easy to use API to add the power of web audio to your game.

25 lines (24 loc) 639 B
import { Marker } from './Marker'; /** * Defines the structure of the options that can be passed when creating a new AudioClip. */ export interface AudioClipOptions { /** * The markers for the audio clip, if any are defined. * * @property {Array<Marker>} */ markers?: Array<Marker>; /** * The id or classname of an element that when clicked it will trigger the clip to play. * * @property {string} */ trigger?: string; /** * Any other references that need to be passed by audio2d. * * @property {*} */ [internal: string]: any; }