UNPKG

ez-web-audio

Version:

Making the Web Audio API super EZ since 2024.

23 lines 742 B
import { TimeObject } from '../utils/create-time-object'; import { ControlType, RampType } from '../param-controller'; export interface Playable { play: () => void; playFor: (duration: number) => void; stop: () => void; isPlaying: boolean; duration: TimeObject; onPlaySet: (type: ControlType) => { to: (value: number) => { at: (time: number) => void; endingAt: (time: number, rampType?: RampType) => void; }; }; onPlayRamp: (type: ControlType, rampType?: RampType) => { from: (startValue: number) => { to: (endValue: number) => { in: (endTime: number) => void; }; }; }; } //# sourceMappingURL=playable.d.ts.map