This commit is contained in:
lucap86
2016-07-24 09:08:10 +02:00
committed by Mohamed Hegazy
parent 94d4f0e96e
commit 301ae9717e

20
howlerjs/howler.d.ts vendored
View File

@@ -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;