UNPKG

ts-audio

Version:

`ts-audio` is an agnostic and easy-to-use library to work with the `AudioContext` API and create Playlists.

18 lines (17 loc) 413 B
import type { AudioClass } from '../audio/Audio'; /** * Represents the global state for an audio playlist. */ export type AudioPlaylistState = { volume: number; loop: boolean; audio: AudioClass | null; isStopped: boolean; isPlaying: boolean; audioIndex: number; }; /** * Default initial state for the audio playlist. */ declare const states: AudioPlaylistState; export default states;