react-simple-game-engine
Version:
[WIP] not able to use in currently. <!-- Document cumming soon... -->
17 lines • 532 B
TypeScript
import { SoundType } from "../export-enums";
import { SoundManagement } from "../export-types";
export declare class Sound {
readonly type: SoundType;
static Management: SoundManagement;
readonly native: HTMLAudioElement;
constructor(type?: SoundType);
get volume(): number;
set volume(vol: number);
get isStopped(): boolean;
playNow(): Promise<void>;
pause(): Promise<void>;
resume(): Promise<void>;
stop(): Promise<void>;
play(): Promise<void>;
}
//# sourceMappingURL=sound.d.ts.map