@hiddentao/clockwork-engine
Version:
A TypeScript/PIXI.js game engine for deterministic, replayable games with built-in rendering
16 lines (15 loc) • 475 B
JavaScript
/**
* Audio Layer Interface
*
* Platform-agnostic audio abstraction that wraps audio engines
* like Web Audio API or provides headless implementations.
*/
/**
* Audio context state (matches Web Audio API states)
*/
export var AudioContextState;
(function (AudioContextState) {
AudioContextState["SUSPENDED"] = "suspended";
AudioContextState["RUNNING"] = "running";
AudioContextState["CLOSED"] = "closed";
})(AudioContextState || (AudioContextState = {}));