modern-canvas
Version:
A JavaScript WebGL rendering engine. only the ESM.
17 lines (16 loc) • 481 B
TypeScript
import type { Audio } from '../Audio';
import { HTMLAudioContext } from './HTMLAudioContext';
import { HTMLSound } from './HTMLSound';
export declare class HTMLAudio {
parent: Audio;
source: HTMLAudioElement;
protected _src: string;
get src(): string;
set src(val: string);
get duration(): number;
get isPlayable(): boolean;
get context(): HTMLAudioContext;
constructor(parent: Audio);
load(): Promise<this>;
createSound(): HTMLSound;
}