excalibur
Version:
Excalibur.js is a simple JavaScript game engine with TypeScript bindings for making 2D games in HTML5 Canvas. Our mission is to make web game development as simple as possible.
16 lines (15 loc) • 482 B
TypeScript
export interface LegacyWebAudioSource {
playbackState: string;
PLAYING_STATE: 'playing';
FINISHED_STATE: 'finished';
}
export declare class WebAudio {
private static _UNLOCKED;
/**
* Play an empty sound to unlock Safari WebAudio context. Call this function
* right after a user interaction event.
* @source https://paulbakaus.com/tutorials/html5/web-audio-on-ios/
*/
static unlock(): Promise<boolean>;
static isUnlocked(): boolean;
}