From c95ee63a5635ee935c3f17518d4d5d76e7d1cf83 Mon Sep 17 00:00:00 2001 From: Moshe Atlow Date: Thu, 13 Oct 2016 21:30:12 +0300 Subject: [PATCH] update to current api --- howlerjs/howler.d.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/howlerjs/howler.d.ts b/howlerjs/howler.d.ts index 9e245a8058..cdb95ce44f 100644 --- a/howlerjs/howler.d.ts +++ b/howlerjs/howler.d.ts @@ -4,8 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare class HowlerGlobal { - mute(): HowlerGlobal; - unmute(): HowlerGlobal; + mute(muted: boolean): HowlerGlobal; volume(): number; volume(volume: number): HowlerGlobal; codecs(extension: string): boolean; @@ -56,8 +55,7 @@ interface Howl { play(callback?: (soundId: string) => void): Howl; pause(soundId?: string): Howl; stop(soundId?: string): Howl; - mute(soundId?: string): Howl; - unmute(soundId?: string): Howl; + mute(muted?: boolean, soundId?: string): Howl; fade(from: number, to: number, duration: number, callback?: Function, soundId?: string): Howl; loop(): boolean; loop(loop: boolean): Howl;