UNPKG

@drincs/pixi-vn

Version:

Pixi'VN is a npm package that provides various features for creating visual novels.

96 lines (93 loc) 3.65 kB
import { SoundLibrary, IMediaContext, Filter, SoundMap, IMediaInstance } from '@pixi/sound'; import ExportedSounds from '../interface/export/ExportedSounds.js'; import NarrationManagerInterface from '../interface/managers/NarrationManagerInterface.js'; import SoundOptions, { SoundPlayOptions } from '../interface/SoundOptions.js'; import Sound from '../classes/Sound.js'; import '../types/SoundFilterMemory.js'; import '@drincs/pixi-vn'; import '../types/ChoiceMenuOptionsType.js'; import '../classes/ChoiceMenuOption.js'; import '../types/LabelIdType.js'; import '../types/StorageElementType.js'; import '../classes/Label.js'; import '../classes/LabelAbstract.js'; import '../types/StepLabelType.js'; import '../interface/LabelProps.js'; import '../types/CloseType.js'; import '../types/LabelRunModeType.js'; import '../types/InputInfo.js'; import '../interface/export/ExportedStep.js'; import '../interface/HistoryStep.js'; import 'deep-diff'; import 'microdiff'; import '../interface/export/ExportedCanvas.js'; import '../types/PauseTickerType.js'; import '../interface/canvas/memory/CanvasBaseItemMemory.js'; import '../interface/canvas/memory/ContainerMemory.js'; import 'pixi.js'; import '../types/ContainerChild.js'; import '../classes/canvas/CanvasBaseItem.js'; import '../interface/TickerHistory.js'; import '../types/TickerIdType.js'; import '../interface/TickerArgs.js'; import '../interface/TickersSequence.js'; import '../types/PauseType.js'; import '../types/RepeatType.js'; import '../interface/OpenedLabel.js'; import '../interface/export/ExportedStorage.js'; import '../classes/Dialogue.js'; import '../interface/CharacterInterface.js'; import '../interface/NarrativeHistory.js'; import '../types/HistoryChoiceMenuOption.js'; declare class SoundManager extends SoundLibrary { private readonly narration; constructor(narration: NarrationManagerInterface); get context(): IMediaContext; get filtersAll(): Filter[]; set filtersAll(filtersAll: Filter[]); get supported(): boolean; /** * https://github.com/pixijs/sound/blob/main/src/SoundLibrary.ts#L187 */ private getOptions; add(alias: string, options: SoundOptions | string): Sound; /** * @deprecated: Use `add(alias: string, options: Options | string | ArrayBuffer | AudioBuffer | HTMLAudioElement | Sound): Sound;` instead. */ add(map: any, globalOptions?: SoundOptions): SoundMap; get useLegacy(): boolean; set useLegacy(legacy: boolean); get disableAutoPause(): boolean; set disableAutoPause(autoPause: boolean); remove(alias: string): this; get volumeAll(): number; set volumeAll(volume: number); get speedAll(): number; set speedAll(speed: number); togglePauseAll(): boolean; pauseAll(): this; resumeAll(): this; toggleMuteAll(): boolean; muteAll(): this; unmuteAll(): this; removeAll(): this; stopAll(): this; exists(alias: string, assert?: boolean): boolean; isPlaying(): boolean; find(alias: string): Sound; play(alias: string, options?: SoundPlayOptions | string): IMediaInstance | Promise<IMediaInstance>; stop(alias: string): Sound; pause(alias: string): Sound; resume(alias: string): Sound; volume(alias: string, volume?: number): number; speed(alias: string, speed?: number): number; duration(alias: string): number; close(): this; clear(): void; exportJson(): string; export(): ExportedSounds; removeOldSoundAndExport(): ExportedSounds; importJson(dataString: string): void; import(data: object, lastStepIndex?: number): void; } export { SoundManager as default };