mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-16 19:09:18 +08:00
20
howlerjs/howler.d.ts
vendored
20
howlerjs/howler.d.ts
vendored
@@ -52,20 +52,20 @@ interface Howl {
|
||||
onpause: Function;
|
||||
onplay: Function;
|
||||
load(): Howl;
|
||||
play(sprite?: string, callback?: (soundId: number) => void): Howl;
|
||||
play(callback?: (soundId: number) => void): Howl;
|
||||
pause(soundId?: number): Howl;
|
||||
stop(soundId?: number): Howl;
|
||||
mute(soundId?: number): Howl;
|
||||
unmute(soundId?: number): Howl;
|
||||
fade(from: number, to: number, duration: number, callback?: Function, soundId?: number): Howl;
|
||||
play(sprite?: string, callback?: (soundId: string) => void): Howl;
|
||||
play(callback?: (soundId: string) => void): Howl;
|
||||
pause(soundId?: string): Howl;
|
||||
stop(soundId?: string): Howl;
|
||||
mute(soundId?: string): Howl;
|
||||
unmute(soundId?: string): Howl;
|
||||
fade(from: number, to: number, duration: number, callback?: Function, soundId?: string): Howl;
|
||||
loop(): boolean;
|
||||
loop(loop: boolean): Howl;
|
||||
pos(position?: number, soundId?: number): number;
|
||||
pos3d(x: number, y: number, z: number, soundId?: number): any;
|
||||
pos(position?: number, soundId?: string): number;
|
||||
pos3d(x: number, y: number, z: number, soundId?: string): any;
|
||||
sprite(definition?: IHowlSoundSpriteDefinition): IHowlSoundSpriteDefinition;
|
||||
volume(): number;
|
||||
volume(volume?: number, soundId?: number): Howl;
|
||||
volume(volume?: number, soundId?: string): Howl;
|
||||
urls(): string[];
|
||||
urls(urls: string[]): Howl;
|
||||
on(event: string, listener?: Function): Howl;
|
||||
|
||||
Reference in New Issue
Block a user