UNPKG

ez-web-audio

Version:

Making the Web Audio API super EZ since 2024.

26 lines 786 B
import { Playable } from './interfaces/playable'; /** * Allows multiple instances of anything that implements * {{#crossLink "Playable"}}{{/crossLink}} to be loaded up and played at the * same time. * * @public * @class LayeredSound */ export declare class LayeredSound { constructor(sounds?: Playable[]); /** * Acts as a register for different types of sounds. Anything that uses * {{#crossLink "Playable"}}{{/crossLink}} can be added to this register. * If not set on instantiation, set to `A()` via `_initSounds`. */ sounds: Playable[]; /** * Maps through objects in `sounds` and calls `play` on each * * @method play */ play(): void; playFor(seconds: number): void; } //# sourceMappingURL=layered-sound.d.ts.map