@drincs/pixi-vn
Version:
Pixi'VN is a npm package that provides various features for creating visual novels.
18 lines (15 loc) • 598 B
text/typescript
import { Sound as Sound$1, IMediaInstance } from '@pixi/sound';
import SoundOptions, { SoundPlayOptions } from '../interface/SoundOptions.cjs';
declare class Sound extends Sound$1 {
alias?: string;
pause(): this;
resume(): this;
destroy(): void;
stop(): this;
play(options?: string | SoundPlayOptions): IMediaInstance | Promise<IMediaInstance>;
/**
* https://github.com/pixijs/sound/blob/main/src/Sound.ts#L235
*/
static from(source: string | string[] | SoundOptions | ArrayBuffer | HTMLAudioElement | AudioBuffer): Sound;
}
export { Sound as default };