assassin-bug/framework/resonator/sources/base-source.d.ts

13 lines
378 B
TypeScript
Raw Permalink Normal View History

2022-11-26 01:22:02 +00:00
export interface BaseSource {
play(when: number, offset: number, duration: number): void;
stop(): void;
setPlaybackRate(value: number): void;
getPlaybackRate(): number;
setVolume(value: number): void;
getVolume(): number;
loop(value: boolean): void;
fadeOut(time: number): void;
fadeIn(time: number): void;
destroy(): void;
}